#F2D45B#F2D45B

#F2D45B is a very light, vivid yellow. Relative luminance 0.667; OKLCH L 87.3% C 0.142 H 95.3°. Best body text is #000000 at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#F2D45B
RGBrgb(242, 212, 91)
HSLhsl(48, 85%, 65%)
HSVhsv(48, 62%, 95%)
CMYKcmyk(0%, 12.4%, 62.4%, 5.1%)
CIE-LABlab(85.36, -3.16, 62.02)
CIE-LCHlch(85.36, 62.10, 92.92°)
OKLaboklab(87.28% -0.0132 0.1418)
OKLCHoklch(87.28% 0.142 95.3)
XYZxyz(62.0525, 66.7226, 19.5058)
Luminance0.6672 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D45B #5B79F2
analogous
#F2885B #F2D45B #C5F25B
triadic
#F2D45B #5BF2D4 #D45BF2
tetradic
#F2D45B #5BF288 #5B79F2 #F25BC5
square
#F2D45B #5BF288 #5B79F2 #F25BC5
split-complementary
#F2D45B #5BC5F2 #885BF2
monochromatic
#C39F0F #EEC522 #F2D45B #F6E394 #FBF2CC

Accessibility & contrast

On white

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

On black

14.34
#F2D45B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D45B
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D45B#FFFFFF#000000##000000
##F2D45B1.001.4614.3414.34
#FFFFFF1.461.0021.0021.00
#00000014.3421.001.001.00
##00000014.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2d45b;
/* rgb */ color: rgb(242, 212, 91);
/* oklch */ color: oklch(87.3% 0.142 95.3);
Tailwind
colors: {
  custom: {
    50: '#fae08e',
    500: '#f2d45b',
    950: '#000000',
  },
}
SCSS
$custom: #f2d45b;
$custom-light: #fae08e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d45b",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 91
  },
  "hsl": {
    "h": 48.079,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.8728,
    "c": 0.14239,
    "h": 95.3
  },
  "luminance": 0.6672
}

Semantic roles & 50–950 ramp

primary
#F2D45B
secondary
#314DC1
accent
#30E204
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D45B

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

Preview Lab → · Contrast checker → · Palette generator →

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