#F2D45F#F2D45F

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

Color values

HEX#F2D45F
RGBrgb(242, 212, 95)
HSLhsl(48, 85%, 66%)
HSVhsv(48, 61%, 95%)
CMYKcmyk(0%, 12.4%, 60.7%, 5.1%)
CIE-LABlab(85.40, -2.90, 60.31)
CIE-LCHlch(85.40, 60.38, 92.75°)
OKLaboklab(87.32% -0.012 0.1387)
OKLCHoklch(87.32% 0.139 95)
XYZxyz(62.2297, 66.7935, 20.4388)
Luminance0.6679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D45F #5F7DF2
analogous
#F28A5F #F2D45F #C6F25F
triadic
#F2D45F #5FF2D4 #D45FF2
tetradic
#F2D45F #5FF28A #5F7DF2 #F25FC6
square
#F2D45F #5FF28A #5F7DF2 #F25FC6
split-complementary
#F2D45F #5FC6F2 #8A5FF2
monochromatic
#C6A110 #EDC526 #F2D45F #F7E398 #FBF2D0

Accessibility & contrast

On white

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

On black

14.36
#F2D45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D45F
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D45F#FFFFFF#000000##000000
##F2D45F1.001.4614.3614.36
#FFFFFF1.461.0021.0021.00
#00000014.3621.001.001.00
##00000014.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D052
Deuteranopia (green-blind)
#EFD964
Tritanopia (blue-blind)
#FFC5BB
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f2d45f;
/* rgb */ color: rgb(242, 212, 95);
/* oklch */ color: oklch(87.3% 0.139 95.0);
Tailwind
colors: {
  custom: {
    50: '#fae091',
    500: '#f2d45f',
    950: '#000000',
  },
}
SCSS
$custom: #f2d45f;
$custom-light: #fae091;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d45f",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 95
  },
  "hsl": {
    "h": 47.755,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.8732,
    "c": 0.13919,
    "h": 95
  },
  "luminance": 0.6679
}

Semantic roles & 50–950 ramp

primary
#F2D45F
secondary
#324FC4
accent
#31E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F2D45F

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

Preview Lab → · Contrast checker → · Palette generator →

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