#F2E45F#F2E45F

#F2E45F is a very light, vivid yellow. Relative luminance 0.752; OKLCH L 90.6% C 0.152 H 103.3°. Best body text is #000000 at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#F2E45F
RGBrgb(242, 228, 95)
HSLhsl(54, 85%, 66%)
HSVhsv(54, 61%, 95%)
CMYKcmyk(0%, 5.8%, 60.7%, 5.1%)
CIE-LABlab(89.48, -10.95, 64.80)
CIE-LCHlch(89.48, 65.71, 99.59°)
OKLaboklab(90.56% -0.0351 0.1482)
OKLCHoklch(90.56% 0.152 103.3)
XYZxyz(66.4293, 75.1928, 21.8387)
Luminance0.7519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E45F #5F6DF2
analogous
#F29A5F #F2E45F #B6F25F
triadic
#F2E45F #5FF2E4 #E45FF2
tetradic
#F2E45F #5FF29A #5F6DF2 #F25FB6
square
#F2E45F #5FF29A #5F6DF2 #F25FB6
split-complementary
#F2E45F #5FB6F2 #9A5FF2
monochromatic
#C6B510 #EDDA26 #F2E45F #F7EE98 #FBF7D0

Accessibility & contrast

On white

1.31
#F2E45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.04
#F2E45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E45F
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E45F#FFFFFF#000000##000000
##F2E45F1.001.3116.0416.04
#FFFFFF1.311.0021.0021.00
#00000016.0421.001.001.00
##00000016.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7DD50
Deuteranopia (green-blind)
#FBE466
Tritanopia (blue-blind)
#FFD6C8
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f2e45f;
/* rgb */ color: rgb(242, 228, 95);
/* oklch */ color: oklch(90.6% 0.152 103.3);
Tailwind
colors: {
  custom: {
    50: '#f9ec92',
    500: '#f2e45f',
    950: '#000000',
  },
}
SCSS
$custom: #f2e45f;
$custom-light: #f9ec92;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e45f",
  "rgb": {
    "r": 242,
    "g": 228,
    "b": 95
  },
  "hsl": {
    "h": 54.286,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.90557,
    "c": 0.1523,
    "h": 103.3
  },
  "luminance": 0.7519
}

Semantic roles & 50–950 ramp

primary
#F2E45F
secondary
#3240C4
accent
#19E104
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F2E45F

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

Preview Lab → · Contrast checker → · Palette generator →

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