#F2D45E#F2D45E

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

Color values

HEX#F2D45E
RGBrgb(242, 212, 94)
HSLhsl(48, 85%, 66%)
HSVhsv(48, 61%, 95%)
CMYKcmyk(0%, 12.4%, 61.2%, 5.1%)
CIE-LABlab(85.39, -2.97, 60.74)
CIE-LCHlch(85.39, 60.81, 92.80°)
OKLaboklab(87.31% -0.0123 0.1395)
OKLCHoklch(87.31% 0.14 95.1)
XYZxyz(62.1845, 66.7754, 20.2010)
Luminance0.6677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D45E #5E7CF2
analogous
#F28A5E #F2D45E #C6F25E
triadic
#F2D45E #5EF2D4 #D45EF2
tetradic
#F2D45E #5EF28A #5E7CF2 #F25EC6
square
#F2D45E #5EF28A #5E7CF2 #F25EC6
split-complementary
#F2D45E #5EC6F2 #8A5EF2
monochromatic
#C6A110 #EDC525 #F2D45E #F7E397 #FBF2CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D45E#FFFFFF#000000##000000
##F2D45E1.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)
#E8D051
Deuteranopia (green-blind)
#F0D964
Tritanopia (blue-blind)
#FFC5BA
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f2d45e;
/* rgb */ color: rgb(242, 212, 94);
/* oklch */ color: oklch(87.3% 0.140 95.1);
Tailwind
colors: {
  custom: {
    50: '#fae090',
    500: '#f2d45e',
    950: '#000000',
  },
}
SCSS
$custom: #f2d45e;
$custom-light: #fae090;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d45e",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 94
  },
  "hsl": {
    "h": 47.838,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.8731,
    "c": 0.14,
    "h": 95.1
  },
  "luminance": 0.66772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2D45E

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

Preview Lab → · Contrast checker → · Palette generator →

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