#F0CF5F#F0CF5F

#F0CF5F is a very light, vivid yellow. Relative luminance 0.640; OKLCH L 86.1% C 0.135 H 92.9°. Best body text is #000000 at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#F0CF5F
RGBrgb(240, 207, 95)
HSLhsl(46, 83%, 66%)
HSVhsv(46, 60%, 94%)
CMYKcmyk(0%, 13.7%, 60.4%, 5.9%)
CIE-LABlab(83.96, -1.17, 58.65)
CIE-LCHlch(83.96, 58.67, 91.14°)
OKLaboklab(86.14% -0.0069 0.1352)
OKLCHoklch(86.14% 0.135 92.9)
XYZxyz(60.3163, 63.9802, 19.9966)
Luminance0.6398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CF5F #5F80F0
analogous
#F0865F #F0CF5F #C8F05F
triadic
#F0CF5F #5FF0CF #CF5FF0
tetradic
#F0CF5F #5FF086 #5F80F0 #F05FC8
square
#F0CF5F #5FF086 #5F80F0 #F05FC8
split-complementary
#F0CF5F #5FC8F0 #865FF0
monochromatic
#C29A12 #EBBE27 #F0CF5F #F5E097 #FAF1CF

Accessibility & contrast

On white

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

On black

13.80
#F0CF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CF5F
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CF5F#FFFFFF#000000##000000
##F0CF5F1.001.5213.8013.80
#FFFFFF1.521.0021.0021.00
#00000013.8021.001.001.00
##00000013.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3CC53
Deuteranopia (green-blind)
#EBD664
Tritanopia (blue-blind)
#FFC0B6
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #f0cf5f;
/* rgb */ color: rgb(240, 207, 95);
/* oklch */ color: oklch(86.1% 0.135 92.9);
Tailwind
colors: {
  custom: {
    50: '#f8dd90',
    500: '#f0cf5f',
    950: '#000000',
  },
}
SCSS
$custom: #f0cf5f;
$custom-light: #f8dd90;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cf5f",
  "rgb": {
    "r": 240,
    "g": 207,
    "b": 95
  },
  "hsl": {
    "h": 46.345,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.86137,
    "c": 0.13536,
    "h": 92.9
  },
  "luminance": 0.63977
}

Semantic roles & 50–950 ramp

primary
#F0CF5F
secondary
#3353C0
accent
#38DF06
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F0CF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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