#F8FA5F#F8FA5F

#F8FA5F is a very light, vivid yellow. Relative luminance 0.892; OKLCH L 95.6% C 0.173 H 110.0°. Best body text is #000000 at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#F8FA5F
RGBrgb(248, 250, 95)
HSLhsl(61, 94%, 68%)
HSVhsv(61, 62%, 98%)
CMYKcmyk(0.8%, 0%, 62%, 2%)
CIE-LABlab(95.65, -19.26, 71.54)
CIE-LCHlch(95.65, 74.09, 105.07°)
OKLaboklab(95.58% -0.059 0.1623)
OKLCHoklch(95.58% 0.173 110)
XYZxyz(74.9649, 89.1559, 24.0841)
Luminance0.8915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8FA5F #615FFA
analogous
#FAAE5F #F8FA5F #ABFA5F
triadic
#F8FA5F #5FF8FA #FA5FF8
tetradic
#F8FA5F #5FFAAE #615FFA #FA5FAB
square
#F8FA5F #5FFAAE #615FFA #FA5FAB
split-complementary
#F8FA5F #5FABFA #AE5FFA
monochromatic
#D5D807 #F5F824 #F8FA5F #FBFC9A #FDFED6

Accessibility & contrast

On white

1.12
#F8FA5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.83
#F8FA5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8FA5F
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8FA5F#FFFFFF#000000##000000
##F8FA5F1.001.1218.8318.83
#FFFFFF1.121.0021.0021.00
#00000018.8321.001.001.00
##00000018.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF04B
Deuteranopia (green-blind)
#FFF569
Tritanopia (blue-blind)
#FFEBDA
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8fa5f;
/* rgb */ color: rgb(248, 250, 95);
/* oklch */ color: oklch(95.6% 0.173 110.0);
Tailwind
colors: {
  custom: {
    50: '#fefb93',
    500: '#f8fa5f',
    950: '#000000',
  },
}
SCSS
$custom: #f8fa5f;
$custom-light: #fefb93;
$custom-dark: #000000;
JSON
{
  "hex": "#f8fa5f",
  "rgb": {
    "r": 248,
    "g": 250,
    "b": 95
  },
  "hsl": {
    "h": 60.774,
    "s": 93.939,
    "l": 67.647
  },
  "oklch": {
    "l": 0.95582,
    "c": 0.17273,
    "h": 110
  },
  "luminance": 0.89154
}

Semantic roles & 50–950 ramp

primary
#F8FA5F
secondary
#2D2BD2
accent
#00E603
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F8FA5F

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

Preview Lab → · Contrast checker → · Palette generator →

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