#F2D45C#F2D45C

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

Color values

HEX#F2D45C
RGBrgb(242, 212, 92)
HSLhsl(48, 85%, 65%)
HSVhsv(48, 62%, 95%)
CMYKcmyk(0%, 12.4%, 62%, 5.1%)
CIE-LABlab(85.37, -3.09, 61.60)
CIE-LCHlch(85.37, 61.67, 92.88°)
OKLaboklab(87.29% -0.0129 0.141)
OKLCHoklch(87.29% 0.142 95.2)
XYZxyz(62.0960, 66.7400, 19.7345)
Luminance0.6674 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D45C #5C7AF2
analogous
#F2895C #F2D45C #C5F25C
triadic
#F2D45C #5CF2D4 #D45CF2
tetradic
#F2D45C #5CF289 #5C7AF2 #F25CC5
square
#F2D45C #5CF289 #5C7AF2 #F25CC5
split-complementary
#F2D45C #5CC5F2 #895CF2
monochromatic
#C4A010 #EDC523 #F2D45C #F7E395 #FBF2CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D45C#FFFFFF#000000##000000
##F2D45C1.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)
#E8D04F
Deuteranopia (green-blind)
#F0D962
Tritanopia (blue-blind)
#FFC5BA
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f2d45c;
/* rgb */ color: rgb(242, 212, 92);
/* oklch */ color: oklch(87.3% 0.142 95.2);
Tailwind
colors: {
  custom: {
    50: '#fae08f',
    500: '#f2d45c',
    950: '#000000',
  },
}
SCSS
$custom: #f2d45c;
$custom-light: #fae08f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d45c",
  "rgb": {
    "r": 242,
    "g": 212,
    "b": 92
  },
  "hsl": {
    "h": 48,
    "s": 85.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.8729,
    "c": 0.1416,
    "h": 95.2
  },
  "luminance": 0.66737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2D45C

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

Preview Lab → · Contrast checker → · Palette generator →

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