#FAF07B#FAF07B

#FAF07B is a very light, vivid yellow. Relative luminance 0.841; OKLCH L 94.0% C 0.139 H 104.3°. Best body text is #000000 at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#FAF07B
RGBrgb(250, 240, 123)
HSLhsl(55, 93%, 73%)
HSVhsv(55, 51%, 98%)
CMYKcmyk(0%, 4%, 50.8%, 2%)
CIE-LABlab(93.48, -11.60, 57.11)
CIE-LCHlch(93.48, 58.28, 101.48°)
OKLaboklab(93.98% -0.0344 0.1347)
OKLCHoklch(93.98% 0.139 104.3)
XYZxyz(74.1617, 84.0765, 31.0569)
Luminance0.8407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FAF07B #7B85FA
analogous
#FAB17B #FAF07B #C4FA7B
triadic
#FAF07B #7BFAF0 #F07BFA
tetradic
#FAF07B #7BFAB1 #7B85FA #FA7BC4
square
#FAF07B #7BFAB1 #7B85FA #FA7BC4
split-complementary
#FAF07B #7BC4FA #B17BFA
monochromatic
#F1DF09 #F8E940 #FAF07B #FCF7B6 #FEFCE2

Accessibility & contrast

On white

1.18
#FAF07B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.81
#FAF07B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FAF07B
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FAF07B#FFFFFF#000000##000000
##FAF07B1.001.1817.8117.81
#FFFFFF1.181.0021.0021.00
#00000017.8121.001.001.00
##00000017.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE970
Deuteranopia (green-blind)
#FFEF81
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #faf07b;
/* rgb */ color: rgb(250, 240, 123);
/* oklch */ color: oklch(94.0% 0.139 104.3);
Tailwind
colors: {
  custom: {
    50: '#fef4a4',
    500: '#faf07b',
    950: '#000000',
  },
}
SCSS
$custom: #faf07b;
$custom-light: #fef4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#faf07b",
  "rgb": {
    "r": 250,
    "g": 240,
    "b": 123
  },
  "hsl": {
    "h": 55.276,
    "s": 92.701,
    "l": 73.137
  },
  "oklch": {
    "l": 0.93981,
    "c": 0.13901,
    "h": 104.3
  },
  "luminance": 0.84074
}

Semantic roles & 50–950 ramp

primary
#FAF07B
secondary
#424ED7
accent
#12E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FAF07B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#FAF07B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva