#797F17#797F17

#797F17 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.120 H 113.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797F17
RGBrgb(121, 127, 23)
HSLhsl(63, 69%, 29%)
HSVhsv(63, 82%, 50%)
CMYKcmyk(4.7%, 0%, 81.9%, 50.2%)
CIE-LABlab(51.04, -15.05, 50.73)
CIE-LCHlch(51.04, 52.92, 106.52°)
OKLaboklab(57.28% -0.047 0.1103)
OKLCHoklch(57.28% 0.12 113.1)
XYZxyz(15.6297, 19.3059, 3.7135)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F17 #1D177F
analogous
#7F5117 #797F17 #457F17
triadic
#797F17 #17797F #7F1779
tetradic
#797F17 #177F51 #1D177F #7F1745
square
#797F17 #177F51 #1D177F #7F1745
split-complementary
#797F17 #17457F #51177F
monochromatic
#191A05 #484B0E #797F17 #AAB320 #D1DB36

Accessibility & contrast

On white

4.32
#797F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#797F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F17
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F17#FFFFFF#000000##000000
##797F171.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#897B21
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f17;
/* rgb */ color: rgb(121, 127, 23);
/* oklch */ color: oklch(57.3% 0.120 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a35f',
    500: '#797f17',
    950: '#000000',
  },
}
SCSS
$custom: #797f17;
$custom-light: #a3a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#797f17",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 63.462,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57281,
    "c": 0.11988,
    "h": 113.1
  },
  "luminance": 0.19306
}

Semantic roles & 50–950 ramp

primary
#797F17
secondary
#453EB4
accent
#3CEC46
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797F17

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

Preview Lab → · Contrast checker → · Palette generator →

#797F17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva