#F8F274#F8F274

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

Color values

HEX#F8F274
RGBrgb(248, 242, 116)
HSLhsl(57, 90%, 71%)
HSVhsv(57, 53%, 97%)
CMYKcmyk(0%, 2.4%, 53.2%, 2.7%)
CIE-LABlab(93.76, -13.94, 60.58)
CIE-LCHlch(93.76, 62.16, 102.96°)
OKLaboklab(94.14% -0.0417 0.1415)
OKLCHoklch(94.14% 0.148 106.4)
XYZxyz(73.6180, 84.7238, 28.9950)
Luminance0.8472 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F274 #747AF8
analogous
#F8B074 #F8F274 #BCF874
triadic
#F8F274 #74F8F2 #F274F8
tetradic
#F8F274 #74F8B0 #747AF8 #F874BC
square
#F8F274 #74F8B0 #747AF8 #F874BC
split-complementary
#F8F274 #74BCF8 #B074F8
monochromatic
#E6DC0C #F5ED3A #F8F274 #FBF7AE #FEFCE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F8F274#FFFFFF#000000##000000
##F8F2741.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)
#FFEA68
Deuteranopia (green-blind)
#FFF07A
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f8f274;
/* rgb */ color: rgb(248, 242, 116);
/* oklch */ color: oklch(94.1% 0.148 106.4);
Tailwind
colors: {
  custom: {
    50: '#fdf69f',
    500: '#f8f274',
    950: '#000000',
  },
}
SCSS
$custom: #f8f274;
$custom-light: #fdf69f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f274",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 116
  },
  "hsl": {
    "h": 57.273,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.94141,
    "c": 0.14756,
    "h": 106.4
  },
  "luminance": 0.84722
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F8F274

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

Preview Lab → · Contrast checker → · Palette generator →

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