#F2D786#F2D786

#F2D786 is a very light, moderate yellow. Relative luminance 0.692; OKLCH L 88.4% C 0.105 H 91.6°. Best body text is #000000 at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#F2D786
RGBrgb(242, 215, 134)
HSLhsl(45, 81%, 74%)
HSVhsv(45, 45%, 95%)
CMYKcmyk(0%, 11.2%, 44.6%, 5.1%)
CIE-LABlab(86.60, -1.24, 43.28)
CIE-LCHlch(86.60, 43.30, 91.64°)
OKLaboklab(88.42% -0.003 0.1049)
OKLCHoklch(88.42% 0.105 91.6)
XYZxyz(65.2234, 69.2020, 32.4713)
Luminance0.6920 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D786 #86A1F2
analogous
#F2A186 #F2D786 #D7F286
triadic
#F2D786 #86F2D7 #D786F2
tetradic
#F2D786 #86F2A1 #86A1F2 #F286D7
square
#F2D786 #86F2A1 #86A1F2 #F286D7
split-complementary
#F2D786 #86D7F2 #A186F2
monochromatic
#E5B219 #ECC54F #F2D786 #F8E9BD #FCF6E3

Accessibility & contrast

On white

1.42
#F2D786 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.84
#F2D786 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D786
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D786#FFFFFF#000000##000000
##F2D7861.001.4214.8414.84
#FFFFFF1.421.0021.0021.00
#00000014.8421.001.001.00
##00000014.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D480
Deuteranopia (green-blind)
#EEDC89
Tritanopia (blue-blind)
#FFCBC3
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d786;
/* rgb */ color: rgb(242, 215, 134);
/* oklch */ color: oklch(88.4% 0.105 91.6);
Tailwind
colors: {
  custom: {
    50: '#f8e3aa',
    500: '#f2d786',
    950: '#000000',
  },
}
SCSS
$custom: #f2d786;
$custom-light: #f8e3aa;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d786",
  "rgb": {
    "r": 242,
    "g": 215,
    "b": 134
  },
  "hsl": {
    "h": 45,
    "s": 80.597,
    "l": 73.725
  },
  "oklch": {
    "l": 0.88416,
    "c": 0.10498,
    "h": 91.6
  },
  "luminance": 0.69199
}

Semantic roles & 50–950 ramp

primary
#F2D786
secondary
#4E6ECE
accent
#3EDD09
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #F2D786

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

Preview Lab → · Contrast checker → · Palette generator →

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