#F6EC7B#F6EC7B

#F6EC7B is a very light, vivid yellow. Relative luminance 0.810; OKLCH L 92.8% C 0.135 H 104.2°. Best body text is #000000 at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#F6EC7B
RGBrgb(246, 236, 123)
HSLhsl(55, 87%, 72%)
HSVhsv(55, 50%, 96%)
CMYKcmyk(0%, 4.1%, 50%, 3.5%)
CIE-LABlab(92.14, -11.21, 55.44)
CIE-LCHlch(92.14, 56.56, 101.43°)
OKLaboklab(92.84% -0.0331 0.1311)
OKLCHoklch(92.84% 0.135 104.2)
XYZxyz(71.5786, 81.0160, 30.6022)
Luminance0.8101 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F6EC7B #7B85F6
analogous
#F6AF7B #F6EC7B #C3F67B
triadic
#F6EC7B #7BF6EC #EC7BF6
tetradic
#F6EC7B #7BF6AF #7B85F6 #F67BC3
square
#F6EC7B #7BF6AF #7B85F6 #F67BC3
split-complementary
#F6EC7B #7BC3F6 #AF7BF6
monochromatic
#E7D510 #F2E442 #F6EC7B #FAF4B4 #FDFBE2

Accessibility & contrast

On white

1.22
#F6EC7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.20
#F6EC7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F6EC7B
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F6EC7B#FFFFFF#000000##000000
##F6EC7B1.001.2217.2017.20
#FFFFFF1.221.0021.0021.00
#00000017.2021.001.001.00
##00000017.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE571
Deuteranopia (green-blind)
#FFEB80
Tritanopia (blue-blind)
#FFDFD2
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f6ec7b;
/* rgb */ color: rgb(246, 236, 123);
/* oklch */ color: oklch(92.8% 0.135 104.2);
Tailwind
colors: {
  custom: {
    50: '#fbf1a4',
    500: '#f6ec7b',
    950: '#000000',
  },
}
SCSS
$custom: #f6ec7b;
$custom-light: #fbf1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f6ec7b",
  "rgb": {
    "r": 246,
    "g": 236,
    "b": 123
  },
  "hsl": {
    "h": 55.122,
    "s": 87.234,
    "l": 72.353
  },
  "oklch": {
    "l": 0.92835,
    "c": 0.1352,
    "h": 104.2
  },
  "luminance": 0.81014
}

Semantic roles & 50–950 ramp

primary
#F6EC7B
secondary
#444FD2
accent
#14E402
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F6EC7B

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

Preview Lab → · Contrast checker → · Palette generator →

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