Colour reference
GitHub Light
#f6f8fa
GitHub’s light mode surface colour.
- RGB
- rgb(246 248 250)
- HSL
- 210°, 29%, 97%
- OKLCh
- 97.8% 0.003 247.9
GitHub Light in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #f6f8fa | |
|---|---|---|
| RGB | rgb(246 248 250) | |
| RGB legacy | rgb(246, 248, 250) | |
| RGB percent | rgb(96.47% 97.25% 98.04%) | |
| HSL | hsl(210 28.6% 97.3%) | |
| HSL legacy | hsl(210, 28.6%, 97.3%) | |
| HSV / HSB | hsv(210, 1.6%, 98%) | |
| HWB | hwb(210 96.5% 2%) | |
| Nearest name | ghostwhite | |
| CMYK | cmyk(1.6%, 0.8%, 0%, 2%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(97.818% 0.00342 247.858)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(97.818% -0.00129 -0.00317) | |
| CIE LCh | lch(97.468% 1.278 250.792) | |
| CIE Lab | lab(97.468% -0.421 -1.207) | |
| Display P3 | color(display-p3 0.9661 0.9723 0.9796) | |
| Rec. 2020 | color(rec2020 0.964 0.9686 0.9769) | |
| srgb-linear | color(srgb-linear 0.9216 0.9387 0.956)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.8882 0.9363 1.0384) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.965, 0.973, 0.98)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.922, 0.939, 0.956)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.965, 0.973, 0.98, 1.0) | |
| GLSL vec4 — linear | vec4(0.922, 0.939, 0.956, 1.0) | |
| GLSL ivec3 | ivec3(246, 248, 250) | |
| HLSL float3 — sRGB | float3(0.965, 0.973, 0.98) | |
| HLSL float3 — linear | float3(0.922, 0.939, 0.956) | |
| HLSL float4 — sRGB | float4(0.965, 0.973, 0.98, 1.0) | |
| HLSL half4 — sRGB | half4(0.965, 0.973, 0.98, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.965, 0.973, 0.98) | |
| WGSL vec4f — sRGB | vec4f(0.965, 0.973, 0.98, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.922, 0.939, 0.956) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.965f, 0.973f, 0.98f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(246, 248, 250, 255) | |
| Unreal FLinearColor | FLinearColor(0.9216f, 0.9387f, 0.956f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(246, 248, 250, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.965, 0.973, 0.98, 1) | |
| Flutter Color | Color(0xFFF6F8FA)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(246, 248, 250) | |
| SwiftUI Color | Color(red: 0.965, green: 0.973, blue: 0.98) | |
| UIKit UIColor | UIColor(red: 0.965, green: 0.973, blue: 0.98, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xF6F8FA | |
|---|---|---|
| 0x hex (ARGB) | 0xFFF6F8FA | |
| Array 0–1 | [0.965, 0.973, 0.98] | |
| Array 0–255 | [246, 248, 250] | |
| Decimal integer | 16185594 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| GitHub Light on white | 1.06:1 | Fail | Lc 0 | Not usable for text |
| GitHub Light on black | 19.73:1 | AAA | Lc 103 | Body text at any size |
GitHub Light text on a white background
GitHub Light text on a black background
White text on GitHub Light
Black text on GitHub Light
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#f6f8f9
- 100#eceeef
- 200#dbdcde
- 300#c4c6c8
- 400#a8a9ab
- 500#8a8b8d
- 600#707273
- 700#595b5c
- 800#464849
- 900#373839
- 950#1e1f20
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#f7f9fb
- Tint 2#f9fafc
- Tint 3#fafbfc
- Tint 4#fcfdfd
- Tint 5#fdfefe
- Shade 1#c1c3c4
- Shade 2#8f9091
- Shade 3#5f6061
- Shade 4#343435
- Shade 5#0e0e0e
Colours that work with GitHub Light
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #f9f7f5
- #faf7f7
- #f7f8f6
- #f5f8f9
- #f7f8fa
Closest CSS names
ghostwhiteΔEok 0.008whitesmokeΔEok 0.009aliceblueΔEok 0.010snowΔEok 0.013azureΔEok 0.018seashellΔEok 0.018