#F7E962#F7E962

#F7E962 is a very light, vivid yellow. Relative luminance 0.789; OKLCH L 92.0% C 0.154 H 103.4°. Best body text is #000000 at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#F7E962
RGBrgb(247, 233, 98)
HSLhsl(54, 90%, 68%)
HSVhsv(54, 60%, 97%)
CMYKcmyk(0%, 5.7%, 60.3%, 3.1%)
CIE-LABlab(91.21, -11.20, 65.52)
CIE-LCHlch(91.21, 66.47, 99.70°)
OKLaboklab(92.03% -0.0358 0.15)
OKLCHoklch(92.03% 0.154 103.4)
XYZxyz(69.7038, 78.9364, 23.1175)
Luminance0.7893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E962 #6270F7
analogous
#F79E62 #F7E962 #BBF762
triadic
#F7E962 #62F7E9 #E962F7
tetradic
#F7E962 #62F79E #6270F7 #F762BB
square
#F7E962 #62F79E #6270F7 #F762BB
split-complementary
#F7E962 #62BBF7 #9E62F7
monochromatic
#D4C10B #F4E128 #F7E962 #FAF19C #FDF9D6

Accessibility & contrast

On white

1.25
#F7E962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.79
#F7E962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E962
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E962#FFFFFF#000000##000000
##F7E9621.001.2516.7916.79
#FFFFFF1.251.0021.0021.00
#00000016.7921.001.001.00
##00000016.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE253
Deuteranopia (green-blind)
#FFE969
Tritanopia (blue-blind)
#FFDACC
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f7e962;
/* rgb */ color: rgb(247, 233, 98);
/* oklch */ color: oklch(92.0% 0.154 103.4);
Tailwind
colors: {
  custom: {
    50: '#fdef94',
    500: '#f7e962',
    950: '#000000',
  },
}
SCSS
$custom: #f7e962;
$custom-light: #fdef94;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e962",
  "rgb": {
    "r": 247,
    "g": 233,
    "b": 98
  },
  "hsl": {
    "h": 54.362,
    "s": 90.303,
    "l": 67.647
  },
  "oklch": {
    "l": 0.92033,
    "c": 0.15424,
    "h": 103.4
  },
  "luminance": 0.78934
}

Semantic roles & 50–950 ramp

primary
#F7E962
secondary
#2F3ECF
accent
#16E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160D
muted
#86857F

Preview Lab

Preview with #F7E962

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

Preview Lab → · Contrast checker → · Palette generator →

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