#F5F56C#F5F56C

#F5F56C is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.4% C 0.158 H 109.1°. Best body text is #000000 at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#F5F56C
RGBrgb(245, 245, 108)
HSLhsl(60, 87%, 69%)
HSVhsv(60, 56%, 96%)
CMYKcmyk(0%, 0%, 55.9%, 3.9%)
CIE-LABlab(94.23, -17.19, 64.55)
CIE-LCHlch(94.23, 66.80, 104.91°)
OKLaboklab(94.43% -0.0516 0.1493)
OKLCHoklch(94.43% 0.158 109.1)
XYZxyz(73.0174, 85.8019, 26.8995)
Luminance0.8580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F56C #6C6CF5
analogous
#F5B16C #F5F56C #B1F56C
triadic
#F5F56C #6CF5F5 #F56CF5
tetradic
#F5F56C #6CF5B1 #6C6CF5 #F56CB1
square
#F5F56C #6CF5B1 #6C6CF5 #F56CB1
split-complementary
#F5F56C #6CB1F5 #B16CF5
monochromatic
#D8D80F #F1F133 #F5F56C #F9F9A5 #FDFDDF

Accessibility & contrast

On white

1.16
#F5F56C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.16
#F5F56C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F56C
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F56C#FFFFFF#000000##000000
##F5F56C1.001.1618.1618.16
#FFFFFF1.161.0021.0021.00
#00000018.1621.001.001.00
##00000018.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC5D
Deuteranopia (green-blind)
#FFF174
Tritanopia (blue-blind)
#FFE7D7
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f5f56c;
/* rgb */ color: rgb(245, 245, 108);
/* oklch */ color: oklch(94.4% 0.158 109.1);
Tailwind
colors: {
  custom: {
    50: '#fbf89b',
    500: '#f5f56c',
    950: '#000000',
  },
}
SCSS
$custom: #f5f56c;
$custom-light: #fbf89b;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f56c",
  "rgb": {
    "r": 245,
    "g": 245,
    "b": 108
  },
  "hsl": {
    "h": 60,
    "s": 87.261,
    "l": 69.216
  },
  "oklch": {
    "l": 0.94429,
    "c": 0.15793,
    "h": 109.1
  },
  "luminance": 0.858
}

Semantic roles & 50–950 ramp

primary
#F5F56C
secondary
#3737CF
accent
#02E402
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F5F56C

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

Preview Lab → · Contrast checker → · Palette generator →

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