#F2D662#F2D662

#F2D662 is a very light, vivid yellow. Relative luminance 0.679; OKLCH L 87.8% C 0.138 H 95.8°. Best body text is #000000 at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#F2D662
RGBrgb(242, 214, 98)
HSLhsl(48, 85%, 67%)
HSVhsv(48, 60%, 95%)
CMYKcmyk(0%, 11.6%, 59.5%, 5.1%)
CIE-LABlab(85.93, -3.72, 59.58)
CIE-LCHlch(85.93, 59.69, 93.57°)
OKLaboklab(87.75% -0.014 0.1375)
OKLCHoklch(87.75% 0.138 95.8)
XYZxyz(62.8718, 67.8552, 21.3386)
Luminance0.6785 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D662 #627EF2
analogous
#F28E62 #F2D662 #C6F262
triadic
#F2D662 #62F2D6 #D662F2
tetradic
#F2D662 #62F28E #627EF2 #F262C6
square
#F2D662 #62F28E #627EF2 #F262C6
split-complementary
#F2D662 #62C6F2 #8E62F2
monochromatic
#C9A511 #EDC729 #F2D662 #F7E59B #FBF4D3

Accessibility & contrast

On white

1.44
#F2D662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.57
#F2D662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D662
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D662#FFFFFF#000000##000000
##F2D6621.001.4414.5714.57
#FFFFFF1.441.0021.0021.00
#00000014.5721.001.001.00
##00000014.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D256
Deuteranopia (green-blind)
#F1DB67
Tritanopia (blue-blind)
#FFC7BD
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #f2d662;
/* rgb */ color: rgb(242, 214, 98);
/* oklch */ color: oklch(87.8% 0.138 95.8);
Tailwind
colors: {
  custom: {
    50: '#f9e292',
    500: '#f2d662',
    950: '#000000',
  },
}
SCSS
$custom: #f2d662;
$custom-light: #f9e292;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d662",
  "rgb": {
    "r": 242,
    "g": 214,
    "b": 98
  },
  "hsl": {
    "h": 48.333,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.87752,
    "c": 0.13819,
    "h": 95.8
  },
  "luminance": 0.67852
}

Semantic roles & 50–950 ramp

primary
#F2D662
secondary
#334FC6
accent
#2FE104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D662

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

Preview Lab → · Contrast checker → · Palette generator →

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