#F2D986#F2D986

#F2D986 is a very light, moderate yellow. Relative luminance 0.702; OKLCH L 88.8% C 0.107 H 93.2°. Best body text is #000000 at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#F2D986
RGBrgb(242, 217, 134)
HSLhsl(46, 81%, 74%)
HSVhsv(46, 45%, 95%)
CMYKcmyk(0%, 10.3%, 44.6%, 5.1%)
CIE-LABlab(87.11, -2.26, 43.92)
CIE-LCHlch(87.11, 43.98, 92.94°)
OKLaboklab(88.81% -0.006 0.1064)
OKLCHoklch(88.81% 0.107 93.2)
XYZxyz(65.7357, 70.2267, 32.6421)
Luminance0.7022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D986 #869FF2
analogous
#F2A386 #F2D986 #D5F286
triadic
#F2D986 #86F2D9 #D986F2
tetradic
#F2D986 #86F2A3 #869FF2 #F286D5
square
#F2D986 #86F2A3 #869FF2 #F286D5
split-complementary
#F2D986 #86D5F2 #A386F2
monochromatic
#E5B619 #ECC84F #F2D986 #F8EABD #FCF6E3

Accessibility & contrast

On white

1.40
#F2D986 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.04
#F2D986 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D986
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D986#FFFFFF#000000##000000
##F2D9861.001.4015.0415.04
#FFFFFF1.401.0021.0021.00
#00000015.0421.001.001.00
##00000015.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D67F
Deuteranopia (green-blind)
#F0DD89
Tritanopia (blue-blind)
#FFCDC5
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f2d986;
/* rgb */ color: rgb(242, 217, 134);
/* oklch */ color: oklch(88.8% 0.107 93.2);
Tailwind
colors: {
  custom: {
    50: '#f8e4aa',
    500: '#f2d986',
    950: '#000000',
  },
}
SCSS
$custom: #f2d986;
$custom-light: #f8e4aa;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d986",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 134
  },
  "hsl": {
    "h": 46.111,
    "s": 80.597,
    "l": 73.725
  },
  "oklch": {
    "l": 0.88814,
    "c": 0.10654,
    "h": 93.2
  },
  "luminance": 0.70224
}

Semantic roles & 50–950 ramp

primary
#F2D986
secondary
#4E6CCE
accent
#3ADD09
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #F2D986

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

Preview Lab → · Contrast checker → · Palette generator →

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