#F2D351#F2D351

#F2D351 is a very light, vivid yellow. Relative luminance 0.661; OKLCH L 87.0% C 0.149 H 95.6°. Best body text is #000000 at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#F2D351
RGBrgb(242, 211, 81)
HSLhsl(48, 86%, 63%)
HSVhsv(48, 67%, 95%)
CMYKcmyk(0%, 12.8%, 66.5%, 5.1%)
CIE-LABlab(85.03, -3.24, 65.86)
CIE-LCHlch(85.03, 65.94, 92.81°)
OKLaboklab(86.99% -0.0146 0.1484)
OKLCHoklch(86.99% 0.149 95.6)
XYZxyz(61.4004, 66.0630, 17.3003)
Luminance0.6606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D351 #5170F2
analogous
#F28251 #F2D351 #C0F251
triadic
#F2D351 #51F2D3 #D351F2
tetradic
#F2D351 #51F282 #5170F2 #F251C0
square
#F2D351 #51F282 #5170F2 #F251C0
split-complementary
#F2D351 #51C0F2 #8251F2
monochromatic
#BB990E #EEC518 #F2D351 #F6E18A #FBF0C3

Accessibility & contrast

On white

1.48
#F2D351 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.21
#F2D351 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D351
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D351#FFFFFF#000000##000000
##F2D3511.001.4814.2114.21
#FFFFFF1.481.0021.0021.00
#00000014.2121.001.001.00
##00000014.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CF40
Deuteranopia (green-blind)
#F0D958
Tritanopia (blue-blind)
#FFC3B8
Achromatopsia (no color)
#D4D4D4

Design tokens & code

CSS
--color: #f2d351;
/* rgb */ color: rgb(242, 211, 81);
/* oklch */ color: oklch(87.0% 0.149 95.6);
Tailwind
colors: {
  custom: {
    50: '#fae088',
    500: '#f2d351',
    950: '#000000',
  },
}
SCSS
$custom: #f2d351;
$custom-light: #fae088;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d351",
  "rgb": {
    "r": 242,
    "g": 211,
    "b": 81
  },
  "hsl": {
    "h": 48.447,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.86989,
    "c": 0.14914,
    "h": 95.6
  },
  "luminance": 0.6606
}

Semantic roles & 50–950 ramp

primary
#F2D351
secondary
#2E49B9
accent
#2EE303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2D351

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

Preview Lab → · Contrast checker → · Palette generator →

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