#F2D161#F2D161

#F2D161 is a very light, vivid yellow. Relative luminance 0.653; OKLCH L 86.7% C 0.135 H 93.0°. Best body text is #000000 at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#F2D161
RGBrgb(242, 209, 97)
HSLhsl(46, 85%, 66%)
HSVhsv(46, 60%, 95%)
CMYKcmyk(0%, 13.6%, 59.9%, 5.1%)
CIE-LABlab(84.66, -1.24, 58.60)
CIE-LCHlch(84.66, 58.61, 91.21°)
OKLaboklab(86.74% -0.007 0.1353)
OKLCHoklch(86.74% 0.135 93)
XYZxyz(61.5788, 65.3444, 20.6761)
Luminance0.6534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D161 #6182F2
analogous
#F28961 #F2D161 #CBF261
triadic
#F2D161 #61F2D1 #D161F2
tetradic
#F2D161 #61F289 #6182F2 #F261CB
square
#F2D161 #61F289 #6182F2 #F261CB
split-complementary
#F2D161 #61CBF2 #8961F2
monochromatic
#C89E10 #EDC128 #F2D161 #F7E19A #FBF2D2

Accessibility & contrast

On white

1.49
#F2D161 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.07
#F2D161 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D161
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D161#FFFFFF#000000##000000
##F2D1611.001.4914.0714.07
#FFFFFF1.491.0021.0021.00
#00000014.0721.001.001.00
##00000014.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CE55
Deuteranopia (green-blind)
#EDD866
Tritanopia (blue-blind)
#FFC2B8
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f2d161;
/* rgb */ color: rgb(242, 209, 97);
/* oklch */ color: oklch(86.7% 0.135 93.0);
Tailwind
colors: {
  custom: {
    50: '#f9de92',
    500: '#f2d161',
    950: '#000000',
  },
}
SCSS
$custom: #f2d161;
$custom-light: #f9de92;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d161",
  "rgb": {
    "r": 242,
    "g": 209,
    "b": 97
  },
  "hsl": {
    "h": 46.345,
    "s": 84.795,
    "l": 66.471
  },
  "oklch": {
    "l": 0.86742,
    "c": 0.13544,
    "h": 93
  },
  "luminance": 0.65341
}

Semantic roles & 50–950 ramp

primary
#F2D161
secondary
#3254C5
accent
#37E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D161

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

Preview Lab → · Contrast checker → · Palette generator →

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