#F8F56F#F8F56F

#F8F56F is a very light, vivid yellow. Relative luminance 0.864; OKLCH L 94.7% C 0.155 H 107.8°. Best body text is #000000 at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#F8F56F
RGBrgb(248, 245, 111)
HSLhsl(59, 91%, 70%)
HSVhsv(59, 55%, 97%)
CMYKcmyk(0%, 1.2%, 55.2%, 2.7%)
CIE-LABlab(94.49, -15.78, 63.61)
CIE-LCHlch(94.49, 65.54, 103.93°)
OKLaboklab(94.7% -0.0475 0.1475)
OKLCHoklch(94.7% 0.155 107.8)
XYZxyz(74.2352, 86.4111, 27.8044)
Luminance0.8641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F56F #6F72F8
analogous
#F8B06F #F8F56F #B6F86F
triadic
#F8F56F #6FF8F5 #F56FF8
tetradic
#F8F56F #6FF8B0 #6F72F8 #F86FB6
square
#F8F56F #6FF8B0 #6F72F8 #F86FB6
split-complementary
#F8F56F #6FB6F8 #B06FF8
monochromatic
#E2DD0B #F5F135 #F8F56F #FBF9A9 #FEFDE2

Accessibility & contrast

On white

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

On black

18.28
#F8F56F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F56F
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F56F#FFFFFF#000000##000000
##F8F56F1.001.1518.2818.28
#FFFFFF1.151.0021.0021.00
#00000018.2821.001.001.00
##00000018.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC61
Deuteranopia (green-blind)
#FFF276
Tritanopia (blue-blind)
#FFE7D8
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f8f56f;
/* rgb */ color: rgb(248, 245, 111);
/* oklch */ color: oklch(94.7% 0.155 107.8);
Tailwind
colors: {
  custom: {
    50: '#fdf89c',
    500: '#f8f56f',
    950: '#000000',
  },
}
SCSS
$custom: #f8f56f;
$custom-light: #fdf89c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f56f",
  "rgb": {
    "r": 248,
    "g": 245,
    "b": 111
  },
  "hsl": {
    "h": 58.686,
    "s": 90.728,
    "l": 70.392
  },
  "oklch": {
    "l": 0.94702,
    "c": 0.15497,
    "h": 107.8
  },
  "luminance": 0.86409
}

Semantic roles & 50–950 ramp

primary
#F8F56F
secondary
#383CD3
accent
#05E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F56F

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

Preview Lab → · Contrast checker → · Palette generator →

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