#F7E172#F7E172

#F7E172 is a very light, vivid yellow. Relative luminance 0.748; OKLCH L 90.6% C 0.134 H 98.3°. Best body text is #000000 at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#F7E172
RGBrgb(247, 225, 114)
HSLhsl(50, 89%, 71%)
HSVhsv(50, 54%, 97%)
CMYKcmyk(0%, 8.9%, 53.8%, 3.1%)
CIE-LABlab(89.32, -6.06, 56.30)
CIE-LCHlch(89.32, 56.63, 96.15°)
OKLaboklab(90.59% -0.0193 0.1321)
OKLCHoklch(90.59% 0.134 98.3)
XYZxyz(68.3226, 74.8423, 26.7634)
Luminance0.7484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E172 #7288F7
analogous
#F79E72 #F7E172 #CAF772
triadic
#F7E172 #72F7E1 #E172F7
tetradic
#F7E172 #72F79E #7288F7 #F772CA
square
#F7E172 #72F79E #7288F7 #F772CA
split-complementary
#F7E172 #72CAF7 #9E72F7
monochromatic
#E2BF0D #F4D538 #F7E172 #FAEDAC #FDF9E2

Accessibility & contrast

On white

1.32
#F7E172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.97
#F7E172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E172
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E172#FFFFFF#000000##000000
##F7E1721.001.3215.9715.97
#FFFFFF1.321.0021.0021.00
#00000015.9721.001.001.00
##00000015.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC68
Deuteranopia (green-blind)
#F9E477
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f7e172;
/* rgb */ color: rgb(247, 225, 114);
/* oklch */ color: oklch(90.6% 0.134 98.3);
Tailwind
colors: {
  custom: {
    50: '#fcea9d',
    500: '#f7e172',
    950: '#000000',
  },
}
SCSS
$custom: #f7e172;
$custom-light: #fcea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e172",
  "rgb": {
    "r": 247,
    "g": 225,
    "b": 114
  },
  "hsl": {
    "h": 50.075,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.90586,
    "c": 0.13352,
    "h": 98.3
  },
  "luminance": 0.74839
}

Semantic roles & 50–950 ramp

primary
#F7E172
secondary
#3B54D2
accent
#26E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F7E172

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

Preview Lab → · Contrast checker → · Palette generator →

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