#F2D151#F2D151

#F2D151 is a very light, vivid yellow. Relative luminance 0.651; OKLCH L 86.6% C 0.148 H 94.5°. Best body text is #000000 at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#F2D151
RGBrgb(242, 209, 81)
HSLhsl(48, 86%, 63%)
HSVhsv(48, 67%, 95%)
CMYKcmyk(0%, 13.6%, 66.5%, 5.1%)
CIE-LABlab(84.52, -2.22, 65.33)
CIE-LCHlch(84.52, 65.37, 91.95°)
OKLaboklab(86.59% -0.0117 0.1473)
OKLCHoklch(86.59% 0.148 94.5)
XYZxyz(60.9066, 65.0755, 17.1357)
Luminance0.6507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D151 #5172F2
analogous
#F28051 #F2D151 #C2F251
triadic
#F2D151 #51F2D1 #D151F2
tetradic
#F2D151 #51F280 #5172F2 #F251C2
square
#F2D151 #51F280 #5172F2 #F251C2
split-complementary
#F2D151 #51C2F2 #8051F2
monochromatic
#BB970E #EEC218 #F2D151 #F6E08A #FBEFC3

Accessibility & contrast

On white

1.50
#F2D151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.01
#F2D151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D151
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D151#FFFFFF#000000##000000
##F2D1511.001.5014.0114.01
#FFFFFF1.501.0021.0021.00
#00000014.0121.001.001.00
##00000014.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CD41
Deuteranopia (green-blind)
#EED758
Tritanopia (blue-blind)
#FFC1B6
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #f2d151;
/* rgb */ color: rgb(242, 209, 81);
/* oklch */ color: oklch(86.6% 0.148 94.5);
Tailwind
colors: {
  custom: {
    50: '#fade88',
    500: '#f2d151',
    950: '#000000',
  },
}
SCSS
$custom: #f2d151;
$custom-light: #fade88;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d151",
  "rgb": {
    "r": 242,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 47.702,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.86589,
    "c": 0.14777,
    "h": 94.5
  },
  "luminance": 0.65072
}

Semantic roles & 50–950 ramp

primary
#F2D151
secondary
#2E4AB9
accent
#31E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D151

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

Preview Lab → · Contrast checker → · Palette generator →

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