#F8F56C#F8F56C

#F8F56C is a very light, vivid yellow. Relative luminance 0.863; OKLCH L 94.7% C 0.158 H 107.9°. Best body text is #000000 at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#F8F56C
RGBrgb(248, 245, 108)
HSLhsl(59, 91%, 70%)
HSVhsv(59, 56%, 97%)
CMYKcmyk(0%, 1.2%, 56.5%, 2.7%)
CIE-LABlab(94.46, -16.00, 64.88)
CIE-LCHlch(94.46, 66.82, 103.85°)
OKLaboklab(94.67% -0.0484 0.1499)
OKLCHoklch(94.67% 0.158 107.9)
XYZxyz(74.0728, 86.3461, 26.9490)
Luminance0.8634 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F56C #6C6FF8
analogous
#F8AF6C #F8F56C #B5F86C
triadic
#F8F56C #6CF8F5 #F56CF8
tetradic
#F8F56C #6CF8AF #6C6FF8 #F86CB5
square
#F8F56C #6CF8AF #6C6FF8 #F86CB5
split-complementary
#F8F56C #6CB5F8 #AF6CF8
monochromatic
#DFDA0B #F5F132 #F8F56C #FBF9A6 #FEFDE1

Accessibility & contrast

On white

1.15
#F8F56C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.27
#F8F56C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F56C
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F56C#FFFFFF#000000##000000
##F8F56C1.001.1518.2718.27
#FFFFFF1.151.0021.0021.00
#00000018.2721.001.001.00
##00000018.2721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8f56c;
/* rgb */ color: rgb(248, 245, 108);
/* oklch */ color: oklch(94.7% 0.158 107.9);
Tailwind
colors: {
  custom: {
    50: '#fdf89b',
    500: '#f8f56c',
    950: '#000000',
  },
}
SCSS
$custom: #f8f56c;
$custom-light: #fdf89b;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f56c",
  "rgb": {
    "r": 248,
    "g": 245,
    "b": 108
  },
  "hsl": {
    "h": 58.714,
    "s": 90.909,
    "l": 69.804
  },
  "oklch": {
    "l": 0.94671,
    "c": 0.15751,
    "h": 107.9
  },
  "luminance": 0.86344
}

Semantic roles & 50–950 ramp

primary
#F8F56C
secondary
#3639D2
accent
#05E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F8F56C

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

Preview Lab → · Contrast checker → · Palette generator →

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