#F7F272#F7F272

#F7F272 is a very light, vivid yellow. Relative luminance 0.845; OKLCH L 94.0% C 0.149 H 106.9°. Best body text is #000000 at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#F7F272
RGBrgb(247, 242, 114)
HSLhsl(58, 89%, 71%)
HSVhsv(58, 54%, 97%)
CMYKcmyk(0%, 2%, 53.8%, 3.1%)
CIE-LABlab(93.67, -14.49, 61.33)
CIE-LCHlch(93.67, 63.02, 103.29°)
OKLaboklab(94.04% -0.0434 0.143)
OKLCHoklch(94.04% 0.149 106.9)
XYZxyz(73.1492, 84.4954, 28.3723)
Luminance0.8449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F272 #7277F7
analogous
#F7AF72 #F7F272 #BAF772
triadic
#F7F272 #72F7F2 #F272F7
tetradic
#F7F272 #72F7AF #7277F7 #F772BA
square
#F7F272 #72F7AF #7277F7 #F772BA
split-complementary
#F7F272 #72BAF7 #AF72F7
monochromatic
#E2DA0D #F4ED38 #F7F272 #FAF7AC #FDFCE2

Accessibility & contrast

On white

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

On black

17.90
#F7F272 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F272
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F272#FFFFFF#000000##000000
##F7F2721.001.1717.9017.90
#FFFFFF1.171.0021.0021.00
#00000017.9021.001.001.00
##00000017.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f7f272;
/* rgb */ color: rgb(247, 242, 114);
/* oklch */ color: oklch(94.0% 0.149 106.9);
Tailwind
colors: {
  custom: {
    50: '#fcf69e',
    500: '#f7f272',
    950: '#000000',
  },
}
SCSS
$custom: #f7f272;
$custom-light: #fcf69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f272",
  "rgb": {
    "r": 247,
    "g": 242,
    "b": 114
  },
  "hsl": {
    "h": 57.744,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94037,
    "c": 0.14943,
    "h": 106.9
  },
  "luminance": 0.84493
}

Semantic roles & 50–950 ramp

primary
#F7F272
secondary
#3B41D2
accent
#09E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F7F272

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

Preview Lab → · Contrast checker → · Palette generator →

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