#F0CF45#F0CF45

#F0CF45 is a very light, vivid yellow. Relative luminance 0.636; OKLCH L 85.9% C 0.154 H 95.3°. Best body text is #000000 at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#F0CF45
RGBrgb(240, 207, 69)
HSLhsl(48, 85%, 61%)
HSVhsv(48, 71%, 94%)
CMYKcmyk(0%, 13.7%, 71.3%, 5.9%)
CIE-LABlab(83.75, -2.65, 69.20)
CIE-LCHlch(83.75, 69.25, 92.19°)
OKLaboklab(85.91% -0.0141 0.1535)
OKLCHoklch(85.91% 0.154 95.3)
XYZxyz(59.3252, 63.5838, 14.7772)
Luminance0.6358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0CF45 #4566F0
analogous
#F07945 #F0CF45 #BBF045
triadic
#F0CF45 #45F0CF #CF45F0
tetradic
#F0CF45 #45F079 #4566F0 #F045BB
square
#F0CF45 #45F079 #4566F0 #F045BB
split-complementary
#F0CF45 #45BBF0 #7945F0
monochromatic
#AD8E0E #E5BD12 #F0CF45 #F5DE7E #F9ECB6

Accessibility & contrast

On white

1.53
#F0CF45 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.72
#F0CF45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0CF45
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0CF45#FFFFFF#000000##000000
##F0CF451.001.5313.7213.72
#FFFFFF1.531.0021.0021.00
#00000013.7221.001.001.00
##00000013.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CB30
Deuteranopia (green-blind)
#EDD54D
Tritanopia (blue-blind)
#FFBFB4
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #f0cf45;
/* rgb */ color: rgb(240, 207, 69);
/* oklch */ color: oklch(85.9% 0.154 95.3);
Tailwind
colors: {
  custom: {
    50: '#f9dd81',
    500: '#f0cf45',
    950: '#000000',
  },
}
SCSS
$custom: #f0cf45;
$custom-light: #f9dd81;
$custom-dark: #000000;
JSON
{
  "hex": "#f0cf45",
  "rgb": {
    "r": 240,
    "g": 207,
    "b": 69
  },
  "hsl": {
    "h": 48.421,
    "s": 85.075,
    "l": 60.588
  },
  "oklch": {
    "l": 0.85907,
    "c": 0.15416,
    "h": 95.3
  },
  "luminance": 0.63581
}

Semantic roles & 50–950 ramp

primary
#F0CF45
secondary
#2C45AD
accent
#2FE204
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#18150B
muted
#86847E

Preview Lab

Preview with #F0CF45

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

Preview Lab → · Contrast checker → · Palette generator →

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