#F2D168#F2D168

#F2D168 is a very light, vivid yellow. Relative luminance 0.655; OKLCH L 86.8% C 0.129 H 92.1°. Best body text is #000000 at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#F2D168
RGBrgb(242, 209, 104)
HSLhsl(46, 84%, 68%)
HSVhsv(46, 57%, 95%)
CMYKcmyk(0%, 13.6%, 57%, 5.1%)
CIE-LABlab(84.73, -0.74, 55.48)
CIE-LCHlch(84.73, 55.49, 90.76°)
OKLaboklab(86.82% -0.0047 0.1294)
OKLCHoklch(86.82% 0.129 92.1)
XYZxyz(61.9197, 65.4807, 22.4716)
Luminance0.6548 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D168 #6889F2
analogous
#F28C68 #F2D168 #CEF268
triadic
#F2D168 #68F2D1 #D168F2
tetradic
#F2D168 #68F28C #6889F2 #F268CE
square
#F2D168 #68F28C #6889F2 #F268CE
split-complementary
#F2D168 #68CEF2 #8C68F2
monochromatic
#CEA112 #EDC030 #F2D168 #F7E2A0 #FCF3D9

Accessibility & contrast

On white

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

On black

14.10
#F2D168 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D168
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D168#FFFFFF#000000##000000
##F2D1681.001.4914.1014.10
#FFFFFF1.491.0021.0021.00
#00000014.1021.001.001.00
##00000014.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CE5E
Deuteranopia (green-blind)
#EDD86C
Tritanopia (blue-blind)
#FFC3B9
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f2d168;
/* rgb */ color: rgb(242, 209, 104);
/* oklch */ color: oklch(86.8% 0.129 92.1);
Tailwind
colors: {
  custom: {
    50: '#f9de96',
    500: '#f2d168',
    950: '#000000',
  },
}
SCSS
$custom: #f2d168;
$custom-light: #f9de96;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d168",
  "rgb": {
    "r": 242,
    "g": 209,
    "b": 104
  },
  "hsl": {
    "h": 45.652,
    "s": 84.146,
    "l": 67.843
  },
  "oklch": {
    "l": 0.8682,
    "c": 0.12948,
    "h": 92.1
  },
  "luminance": 0.65478
}

Semantic roles & 50–950 ramp

primary
#F2D168
secondary
#3458CA
accent
#39E105
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F2D168

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

Preview Lab → · Contrast checker → · Palette generator →

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