#F7E97B#F7E97B

#F7E97B is a very light, vivid yellow. Relative luminance 0.795; OKLCH L 92.3% C 0.132 H 102.1°. Best body text is #000000 at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#F7E97B
RGBrgb(247, 233, 123)
HSLhsl(53, 89%, 73%)
HSVhsv(53, 50%, 97%)
CMYKcmyk(0%, 5.7%, 50.2%, 3.1%)
CIE-LABlab(91.45, -9.33, 54.64)
CIE-LCHlch(91.45, 55.43, 99.69°)
OKLaboklab(92.31% -0.0277 0.1293)
OKLCHoklch(92.31% 0.132 102.1)
XYZxyz(71.0739, 79.4844, 30.3332)
Luminance0.7948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E97B #7B89F7
analogous
#F7AB7B #F7E97B #C7F77B
triadic
#F7E97B #7BF7E9 #E97BF7
tetradic
#F7E97B #7BF7AB #7B89F7 #F77BC7
square
#F7E97B #7BF7AB #7B89F7 #F77BC7
split-complementary
#F7E97B #7BC7F7 #AB7BF7
monochromatic
#E9D10E #F4DF41 #F7E97B #FAF3B5 #FDFAE2

Accessibility & contrast

On white

1.24
#F7E97B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.90
#F7E97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E97B
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E97B#FFFFFF#000000##000000
##F7E97B1.001.2416.9016.90
#FFFFFF1.241.0021.0021.00
#00000016.9021.001.001.00
##00000016.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE371
Deuteranopia (green-blind)
#FFE980
Tritanopia (blue-blind)
#FFDCD0
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f7e97b;
/* rgb */ color: rgb(247, 233, 123);
/* oklch */ color: oklch(92.3% 0.132 102.1);
Tailwind
colors: {
  custom: {
    50: '#fcefa4',
    500: '#f7e97b',
    950: '#000000',
  },
}
SCSS
$custom: #f7e97b;
$custom-light: #fcefa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e97b",
  "rgb": {
    "r": 247,
    "g": 233,
    "b": 123
  },
  "hsl": {
    "h": 53.226,
    "s": 88.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.9231,
    "c": 0.13227,
    "h": 102.1
  },
  "luminance": 0.79482
}

Semantic roles & 50–950 ramp

primary
#F7E97B
secondary
#4353D3
accent
#1AE500
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F7E97B

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

Preview Lab → · Contrast checker → · Palette generator →

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