#797D23#797D23

#797D23 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.111 H 111.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#797D23
RGBrgb(121, 125, 35)
HSLhsl(63, 56%, 31%)
HSVhsv(63, 72%, 49%)
CMYKcmyk(3.2%, 0%, 72%, 51%)
CIE-LABlab(50.52, -13.40, 45.99)
CIE-LCHlch(50.52, 47.90, 106.25°)
OKLaboklab(56.88% -0.0413 0.1025)
OKLCHoklch(56.88% 0.111 111.9)
XYZxyz(15.5226, 18.8539, 4.4113)
Luminance0.1885 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D23 #27237D
analogous
#7D5423 #797D23 #4C7D23
triadic
#797D23 #23797D #7D2379
tetradic
#797D23 #237D54 #27237D #7D234C
square
#797D23 #237D54 #27237D #7D234C
split-complementary
#797D23 #234C7D #54237D
monochromatic
#1C1D08 #4B4D16 #797D23 #A7AD30 #C8CD4D

Accessibility & contrast

On white

4.40
#797D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#797D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D23
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D23#FFFFFF#000000##000000
##797D231.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#877714
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d23;
/* rgb */ color: rgb(121, 125, 35);
/* oklch */ color: oklch(56.9% 0.111 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a264',
    500: '#797d23',
    950: '#000000',
  },
}
SCSS
$custom: #797d23;
$custom-light: #a2a264;
$custom-dark: #000000;
JSON
{
  "hex": "#797d23",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 35
  },
  "hsl": {
    "h": 62.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56881,
    "c": 0.11052,
    "h": 111.9
  },
  "luminance": 0.18854
}

Semantic roles & 50–950 ramp

primary
#797D23
secondary
#514CAF
accent
#48E04F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D23

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

Preview Lab → · Contrast checker → · Palette generator →

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