#F0CF62#F0CF62

#F0CF62 is a very light, vivid yellow. Relative luminance 0.640; OKLCH L 86.2% C 0.133 H 92.6°. Best body text is #000000 at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#F0CF62
RGBrgb(240, 207, 98)
HSLhsl(46, 83%, 66%)
HSVhsv(46, 59%, 94%)
CMYKcmyk(0%, 13.7%, 59.2%, 5.9%)
CIE-LABlab(83.98, -0.97, 57.33)
CIE-LCHlch(83.98, 57.34, 90.97°)
OKLaboklab(86.17% -0.006 0.1327)
OKLCHoklch(86.17% 0.133 92.6)
XYZxyz(60.4553, 64.0358, 20.7287)
Luminance0.6403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CF62 #6283F0
analogous
#F08862 #F0CF62 #CAF062
triadic
#F0CF62 #62F0CF #CF62F0
tetradic
#F0CF62 #62F088 #6283F0 #F062CA
square
#F0CF62 #62F088 #6283F0 #F062CA
split-complementary
#F0CF62 #62CAF0 #8862F0
monochromatic
#C59B13 #EBBE2A #F0CF62 #F5E09A #FBF1D2

Accessibility & contrast

On white

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

On black

13.81
#F0CF62 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CF62
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CF62#FFFFFF#000000##000000
##F0CF621.001.5213.8113.81
#FFFFFF1.521.0021.0021.00
#00000013.8121.001.001.00
##00000013.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CC57
Deuteranopia (green-blind)
#EBD667
Tritanopia (blue-blind)
#FFC1B7
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #f0cf62;
/* rgb */ color: rgb(240, 207, 98);
/* oklch */ color: oklch(86.2% 0.133 92.6);
Tailwind
colors: {
  custom: {
    50: '#f8dd92',
    500: '#f0cf62',
    950: '#000000',
  },
}
SCSS
$custom: #f0cf62;
$custom-light: #f8dd92;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cf62",
  "rgb": {
    "r": 240,
    "g": 207,
    "b": 98
  },
  "hsl": {
    "h": 46.056,
    "s": 82.558,
    "l": 66.275
  },
  "oklch": {
    "l": 0.86169,
    "c": 0.13285,
    "h": 92.6
  },
  "luminance": 0.64033
}

Semantic roles & 50–950 ramp

primary
#F0CF62
secondary
#3455C2
accent
#39DF07
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0CF62

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

Preview Lab → · Contrast checker → · Palette generator →

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