#F2CF51#F2CF51

#F2CF51 is a very light, vivid yellow. Relative luminance 0.641; OKLCH L 86.2% C 0.146 H 93.4°. Best body text is #000000 at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#F2CF51
RGBrgb(242, 207, 81)
HSLhsl(47, 86%, 63%)
HSVhsv(47, 67%, 95%)
CMYKcmyk(0%, 14.5%, 66.5%, 5.1%)
CIE-LABlab(84.02, -1.20, 64.81)
CIE-LCHlch(84.02, 64.82, 91.06°)
OKLaboklab(86.19% -0.0088 0.1462)
OKLCHoklch(86.19% 0.146 93.4)
XYZxyz(60.4190, 64.1003, 16.9732)
Luminance0.6410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2CF51 #5174F2
analogous
#F27F51 #F2CF51 #C4F251
triadic
#F2CF51 #51F2CF #CF51F2
tetradic
#F2CF51 #51F27F #5174F2 #F251C4
square
#F2CF51 #51F27F #5174F2 #F251C4
split-complementary
#F2CF51 #51C4F2 #7F51F2
monochromatic
#BB950E #EEBF18 #F2CF51 #F6DF8A #FBEEC3

Accessibility & contrast

On white

1.52
#F2CF51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.82
#F2CF51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2CF51
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2CF51#FFFFFF#000000##000000
##F2CF511.001.5213.8213.82
#FFFFFF1.521.0021.0021.00
#00000013.8221.001.001.00
##00000013.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB41
Deuteranopia (green-blind)
#EDD657
Tritanopia (blue-blind)
#FFBFB5
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #f2cf51;
/* rgb */ color: rgb(242, 207, 81);
/* oklch */ color: oklch(86.2% 0.146 93.4);
Tailwind
colors: {
  custom: {
    50: '#fadd88',
    500: '#f2cf51',
    950: '#000000',
  },
}
SCSS
$custom: #f2cf51;
$custom-light: #fadd88;
$custom-dark: #000000;
JSON
{
  "hex": "#f2cf51",
  "rgb": {
    "r": 242,
    "g": 207,
    "b": 81
  },
  "hsl": {
    "h": 46.957,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.8619,
    "c": 0.14645,
    "h": 93.4
  },
  "luminance": 0.64097
}

Semantic roles & 50–950 ramp

primary
#F2CF51
secondary
#2E4CB9
accent
#34E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F2CF51

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

Preview Lab → · Contrast checker → · Palette generator →

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