#F2D262#F2D262

#F2D262 is a very light, vivid yellow. Relative luminance 0.659; OKLCH L 87.0% C 0.135 H 93.5°. Best body text is #000000 at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#F2D262
RGBrgb(242, 210, 98)
HSLhsl(47, 85%, 67%)
HSVhsv(47, 60%, 95%)
CMYKcmyk(0%, 13.2%, 59.5%, 5.1%)
CIE-LABlab(84.92, -1.68, 58.44)
CIE-LCHlch(84.92, 58.47, 91.64°)
OKLaboklab(86.95% -0.0082 0.1351)
OKLCHoklch(86.95% 0.135 93.5)
XYZxyz(61.8719, 65.8554, 21.0053)
Luminance0.6585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D262 #6282F2
analogous
#F28A62 #F2D262 #CAF262
triadic
#F2D262 #62F2D2 #D262F2
tetradic
#F2D262 #62F28A #6282F2 #F262CA
square
#F2D262 #62F28A #6282F2 #F262CA
split-complementary
#F2D262 #62CAF2 #8A62F2
monochromatic
#C9A011 #EDC229 #F2D262 #F7E29B #FBF2D3

Accessibility & contrast

On white

1.48
#F2D262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.17
#F2D262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D262
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D262#FFFFFF#000000##000000
##F2D2621.001.4814.1714.17
#FFFFFF1.481.0021.0021.00
#00000014.1721.001.001.00
##00000014.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CE56
Deuteranopia (green-blind)
#EED867
Tritanopia (blue-blind)
#FFC3B9
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f2d262;
/* rgb */ color: rgb(242, 210, 98);
/* oklch */ color: oklch(87.0% 0.135 93.5);
Tailwind
colors: {
  custom: {
    50: '#f9df92',
    500: '#f2d262',
    950: '#000000',
  },
}
SCSS
$custom: #f2d262;
$custom-light: #f9df92;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d262",
  "rgb": {
    "r": 242,
    "g": 210,
    "b": 98
  },
  "hsl": {
    "h": 46.667,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.86952,
    "c": 0.1353,
    "h": 93.5
  },
  "luminance": 0.65852
}

Semantic roles & 50–950 ramp

primary
#F2D262
secondary
#3353C6
accent
#35E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D262

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

Preview Lab → · Contrast checker → · Palette generator →

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