#F6E87F#F6E87F

#F6E87F is a very light, vivid yellow. Relative luminance 0.788; OKLCH L 92.1% C 0.127 H 101.8°. Best body text is #000000 at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#F6E87F
RGBrgb(246, 232, 127)
HSLhsl(53, 87%, 73%)
HSVhsv(53, 48%, 96%)
CMYKcmyk(0%, 5.7%, 48.4%, 3.5%)
CIE-LABlab(91.16, -8.88, 52.39)
CIE-LCHlch(91.16, 53.14, 99.62°)
OKLaboklab(92.07% -0.026 0.1247)
OKLCHoklch(92.07% 0.127 101.8)
XYZxyz(70.6954, 78.8407, 31.5684)
Luminance0.7884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F6E87F #7F8DF6
analogous
#F6AC7F #F6E87F #C8F67F
triadic
#F6E87F #7FF6E8 #E87FF6
tetradic
#F6E87F #7FF6AC #7F8DF6 #F67FC8
square
#F6E87F #7FF6AC #7F8DF6 #F67FC8
split-complementary
#F6E87F #7FC8F6 #AC7FF6
monochromatic
#EAD110 #F2DE46 #F6E87F #FAF2B8 #FDFAE2

Accessibility & contrast

On white

1.25
#F6E87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.77
#F6E87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F6E87F
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F6E87F#FFFFFF#000000##000000
##F6E87F1.001.2516.7716.77
#FFFFFF1.251.0021.0021.00
#00000016.7721.001.001.00
##00000016.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E276
Deuteranopia (green-blind)
#FDE884
Tritanopia (blue-blind)
#FFDBCF
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f6e87f;
/* rgb */ color: rgb(246, 232, 127);
/* oklch */ color: oklch(92.1% 0.127 101.8);
Tailwind
colors: {
  custom: {
    50: '#fbefa6',
    500: '#f6e87f',
    950: '#000000',
  },
}
SCSS
$custom: #f6e87f;
$custom-light: #fbefa6;
$custom-dark: #000000;
JSON
{
  "hex": "#f6e87f",
  "rgb": {
    "r": 246,
    "g": 232,
    "b": 127
  },
  "hsl": {
    "h": 52.941,
    "s": 86.861,
    "l": 73.137
  },
  "oklch": {
    "l": 0.92074,
    "c": 0.12741,
    "h": 101.8
  },
  "luminance": 0.78838
}

Semantic roles & 50–950 ramp

primary
#F6E87F
secondary
#4757D2
accent
#1DE302
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F6E87F

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

Preview Lab → · Contrast checker → · Palette generator →

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