#F7F281#F7F281

#F7F281 is a very light, vivid yellow. Relative luminance 0.849; OKLCH L 94.2% C 0.135 H 106.5°. Best body text is #000000 at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#F7F281
RGBrgb(247, 242, 129)
HSLhsl(57, 88%, 74%)
HSVhsv(57, 48%, 97%)
CMYKcmyk(0%, 2%, 47.8%, 3.1%)
CIE-LABlab(93.83, -13.26, 54.68)
CIE-LCHlch(93.83, 56.27, 103.63°)
OKLaboklab(94.22% -0.0384 0.1299)
OKLCHoklch(94.22% 0.135 106.5)
XYZxyz(74.0741, 84.8654, 33.2433)
Luminance0.8486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F281 #8186F7
analogous
#F7B781 #F7F281 #C1F781
triadic
#F7F281 #81F7F2 #F281F7
tetradic
#F7F281 #81F7B7 #8186F7 #F781C1
square
#F7F281 #81F7B7 #8186F7 #F781C1
split-complementary
#F7F281 #81C1F7 #B781F7
monochromatic
#EEE50F #F3EC47 #F7F281 #FBF8BB #FDFCE2

Accessibility & contrast

On white

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

On black

17.97
#F7F281 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F281
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F281#FFFFFF#000000##000000
##F7F2811.001.1717.9717.97
#FFFFFF1.171.0021.0021.00
#00000017.9721.001.001.00
##00000017.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA77
Deuteranopia (green-blind)
#FFF086
Tritanopia (blue-blind)
#FFE5D8
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f7f281;
/* rgb */ color: rgb(247, 242, 129);
/* oklch */ color: oklch(94.2% 0.135 106.5);
Tailwind
colors: {
  custom: {
    50: '#fcf6a8',
    500: '#f7f281',
    950: '#000000',
  },
}
SCSS
$custom: #f7f281;
$custom-light: #fcf6a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f281",
  "rgb": {
    "r": 247,
    "g": 242,
    "b": 129
  },
  "hsl": {
    "h": 57.458,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.94216,
    "c": 0.13548,
    "h": 106.5
  },
  "luminance": 0.84863
}

Semantic roles & 50–950 ramp

primary
#F7F281
secondary
#494ED4
accent
#0BE501
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F7F281

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

Preview Lab → · Contrast checker → · Palette generator →

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