#F0F56C#F0F56C

#F0F56C is a very light, vivid yellow. Relative luminance 0.849; OKLCH L 94.0% C 0.159 H 111.0°. Best body text is #000000 at 17.98:1 contrast (WCAG AA passes).

Color values

HEX#F0F56C
RGBrgb(240, 245, 108)
HSLhsl(62, 87%, 69%)
HSVhsv(62, 56%, 96%)
CMYKcmyk(2%, 0%, 55.9%, 3.9%)
CIE-LABlab(93.85, -19.17, 64.02)
CIE-LCHlch(93.85, 66.83, 106.67°)
OKLaboklab(94.03% -0.057 0.1482)
OKLCHoklch(94.03% 0.159 111)
XYZxyz(71.2962, 84.9144, 26.8188)
Luminance0.8491 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F56C #716CF5
analogous
#F5B66C #F0F56C #ACF56C
triadic
#F0F56C #6CF0F5 #F56CF0
tetradic
#F0F56C #6CF5B6 #716CF5 #F56CAC
square
#F0F56C #6CF5B6 #716CF5 #F56CAC
split-complementary
#F0F56C #6CACF5 #B66CF5
monochromatic
#D1D80F #EAF133 #F0F56C #F6F9A5 #FCFDDF

Accessibility & contrast

On white

1.17
#F0F56C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.98
#F0F56C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F56C
17.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F56C#FFFFFF#000000##000000
##F0F56C1.001.1717.9817.98
#FFFFFF1.171.0021.0021.00
#00000017.9821.001.001.00
##00000017.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB5D
Deuteranopia (green-blind)
#FFEF74
Tritanopia (blue-blind)
#FFE8D7
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f0f56c;
/* rgb */ color: rgb(240, 245, 108);
/* oklch */ color: oklch(94.0% 0.159 111.0);
Tailwind
colors: {
  custom: {
    50: '#f8f89a',
    500: '#f0f56c',
    950: '#000000',
  },
}
SCSS
$custom: #f0f56c;
$custom-light: #f8f89a;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f56c",
  "rgb": {
    "r": 240,
    "g": 245,
    "b": 108
  },
  "hsl": {
    "h": 62.19,
    "s": 87.261,
    "l": 69.216
  },
  "oklch": {
    "l": 0.94032,
    "c": 0.15878,
    "h": 111
  },
  "luminance": 0.84913
}

Semantic roles & 50–950 ramp

primary
#F0F56C
secondary
#3C37CF
accent
#02E40A
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F0F56C

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

Preview Lab → · Contrast checker → · Palette generator →

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