#F2D162#F2D162

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

Color values

HEX#F2D162
RGBrgb(242, 209, 98)
HSLhsl(46, 85%, 67%)
HSVhsv(46, 60%, 95%)
CMYKcmyk(0%, 13.6%, 59.5%, 5.1%)
CIE-LABlab(84.67, -1.17, 58.16)
CIE-LCHlch(84.67, 58.17, 91.15°)
OKLaboklab(86.75% -0.0067 0.1344)
OKLCHoklch(86.75% 0.135 92.8)
XYZxyz(61.6257, 65.3631, 20.9232)
Luminance0.6536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D162 #6283F2
analogous
#F28962 #F2D162 #CBF262
triadic
#F2D162 #62F2D1 #D162F2
tetradic
#F2D162 #62F289 #6283F2 #F262CB
square
#F2D162 #62F289 #6283F2 #F262CB
split-complementary
#F2D162 #62CBF2 #8962F2
monochromatic
#C99F11 #EDC029 #F2D162 #F7E29B #FBF2D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D162#FFFFFF#000000##000000
##F2D1621.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)
#E5CE57
Deuteranopia (green-blind)
#EDD867
Tritanopia (blue-blind)
#FFC2B8
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f2d162;
/* rgb */ color: rgb(242, 209, 98);
/* oklch */ color: oklch(86.8% 0.135 92.8);
Tailwind
colors: {
  custom: {
    50: '#f9de92',
    500: '#f2d162',
    950: '#000000',
  },
}
SCSS
$custom: #f2d162;
$custom-light: #f9de92;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d162",
  "rgb": {
    "r": 242,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 46.25,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.86753,
    "c": 0.13461,
    "h": 92.8
  },
  "luminance": 0.6536
}

Semantic roles & 50–950 ramp

primary
#F2D162
secondary
#3354C6
accent
#37E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D162

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

Preview Lab → · Contrast checker → · Palette generator →

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