#F8F397#F8F397

#F8F397 is a very light, moderate yellow. Relative luminance 0.863; OKLCH L 94.8% C 0.114 H 105.7°. Best body text is #000000 at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#F8F397
RGBrgb(248, 243, 151)
HSLhsl(57, 87%, 78%)
HSVhsv(57, 39%, 97%)
CMYKcmyk(0%, 2%, 39.1%, 2.7%)
CIE-LABlab(94.44, -11.23, 44.93)
CIE-LCHlch(94.44, 46.31, 104.04°)
OKLaboklab(94.81% -0.0307 0.1095)
OKLCHoklch(94.81% 0.114 105.7)
XYZxyz(76.3491, 86.2938, 41.9066)
Luminance0.8629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F397 #979CF8
analogous
#F8C297 #F8F397 #CCF897
triadic
#F8F397 #97F8F3 #F397F8
tetradic
#F8F397 #97F8C2 #979CF8 #F897CC
square
#F8F397 #97F8C2 #979CF8 #F897CC
split-complementary
#F8F397 #97CCF8 #C297F8
monochromatic
#F0E624 #F4EC5E #F8F397 #FCFAD0 #FDFCE2

Accessibility & contrast

On white

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

On black

18.26
#F8F397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F397
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F397#FFFFFF#000000##000000
##F8F3971.001.1518.2618.26
#FFFFFF1.151.0021.0021.00
#00000018.2621.001.001.00
##00000018.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED90
Deuteranopia (green-blind)
#FFF19B
Tritanopia (blue-blind)
#FFE8DC
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f8f397;
/* rgb */ color: rgb(248, 243, 151);
/* oklch */ color: oklch(94.8% 0.114 105.7);
Tailwind
colors: {
  custom: {
    50: '#fcf6b7',
    500: '#f8f397',
    950: '#000000',
  },
}
SCSS
$custom: #f8f397;
$custom-light: #fcf6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f397",
  "rgb": {
    "r": 248,
    "g": 243,
    "b": 151
  },
  "hsl": {
    "h": 56.907,
    "s": 87.387,
    "l": 78.235
  },
  "oklch": {
    "l": 0.94812,
    "c": 0.11374,
    "h": 105.7
  },
  "luminance": 0.86292
}

Semantic roles & 50–950 ramp

primary
#F8F397
secondary
#5C62D8
accent
#0DE402
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #F8F397

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

Preview Lab → · Contrast checker → · Palette generator →

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