#F2D45D#F2D45D

#F2D45D is a very light, vivid yellow. Relative luminance 0.668; OKLCH L 87.3% C 0.141 H 95.2°. Best body text is #000000 at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#F2D45D
RGBrgb(242, 212, 93)
HSLhsl(48, 85%, 66%)
HSVhsv(48, 62%, 95%)
CMYKcmyk(0%, 12.4%, 61.6%, 5.1%)
CIE-LABlab(85.38, -3.03, 61.17)
CIE-LCHlch(85.38, 61.25, 92.84°)
OKLaboklab(87.3% -0.0126 0.1402)
OKLCHoklch(87.3% 0.141 95.2)
XYZxyz(62.1400, 66.7576, 19.9662)
Luminance0.6675 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D45D #5D7BF2
analogous
#F2895D #F2D45D #C6F25D
triadic
#F2D45D #5DF2D4 #D45DF2
tetradic
#F2D45D #5DF289 #5D7BF2 #F25DC6
square
#F2D45D #5DF289 #5D7BF2 #F25DC6
split-complementary
#F2D45D #5DC6F2 #895DF2
monochromatic
#C5A010 #EDC524 #F2D45D #F7E396 #FBF2CE

Accessibility & contrast

On white

1.46
#F2D45D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.35
#F2D45D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D45D
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D45D#FFFFFF#000000##000000
##F2D45D1.001.4614.3514.35
#FFFFFF1.461.0021.0021.00
#00000014.3521.001.001.00
##00000014.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D050
Deuteranopia (green-blind)
#F0D963
Tritanopia (blue-blind)
#FFC5BA
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f2d45d;
/* rgb */ color: rgb(242, 212, 93);
/* oklch */ color: oklch(87.3% 0.141 95.2);
Tailwind
colors: {
  custom: {
    50: '#fae08f',
    500: '#f2d45d',
    950: '#000000',
  },
}
SCSS
$custom: #f2d45d;
$custom-light: #fae08f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d45d",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 93
  },
  "hsl": {
    "h": 47.919,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.873,
    "c": 0.1408,
    "h": 95.2
  },
  "luminance": 0.66755
}

Semantic roles & 50–950 ramp

primary
#F2D45D
secondary
#314EC2
accent
#31E204
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D45D

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

Preview Lab → · Contrast checker → · Palette generator →

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