#F8F273#F8F273

#F8F273 is a very light, vivid yellow. Relative luminance 0.847; OKLCH L 94.1% C 0.148 H 106.5°. Best body text is #000000 at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#F8F273
RGBrgb(248, 242, 115)
HSLhsl(57, 90%, 71%)
HSVhsv(57, 54%, 97%)
CMYKcmyk(0%, 2.4%, 53.6%, 2.7%)
CIE-LABlab(93.75, -14.02, 61.01)
CIE-LCHlch(93.75, 62.60, 102.94°)
OKLaboklab(94.13% -0.042 0.1424)
OKLCHoklch(94.13% 0.148 106.5)
XYZxyz(73.5601, 84.7007, 28.6903)
Luminance0.8470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F273 #7379F8
analogous
#F8AF73 #F8F273 #BBF873
triadic
#F8F273 #73F8F2 #F273F8
tetradic
#F8F273 #73F8AF #7379F8 #F873BB
square
#F8F273 #73F8AF #7379F8 #F873BB
split-complementary
#F8F273 #73BBF8 #AF73F8
monochromatic
#E5DB0B #F5ED39 #F8F273 #FBF7AD #FEFCE2

Accessibility & contrast

On white

1.17
#F8F273 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.94
#F8F273 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F273
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F273#FFFFFF#000000##000000
##F8F2731.001.1717.9417.94
#FFFFFF1.171.0021.0021.00
#00000017.9421.001.001.00
##00000017.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA66
Deuteranopia (green-blind)
#FFF07A
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f8f273;
/* rgb */ color: rgb(248, 242, 115);
/* oklch */ color: oklch(94.1% 0.148 106.5);
Tailwind
colors: {
  custom: {
    50: '#fdf69f',
    500: '#f8f273',
    950: '#000000',
  },
}
SCSS
$custom: #f8f273;
$custom-light: #fdf69f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f273",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 115
  },
  "hsl": {
    "h": 57.293,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.9413,
    "c": 0.14846,
    "h": 106.5
  },
  "luminance": 0.84699
}

Semantic roles & 50–950 ramp

primary
#F8F273
secondary
#3C43D3
accent
#0AE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F273

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

Preview Lab → · Contrast checker → · Palette generator →

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