#797F23#797F23

#797F23 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.113 H 113.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797F23
RGBrgb(121, 127, 35)
HSLhsl(64, 57%, 32%)
HSVhsv(64, 72%, 50%)
CMYKcmyk(4.7%, 0%, 72.4%, 50.2%)
CIE-LABlab(51.11, -14.48, 46.58)
CIE-LCHlch(51.11, 48.78, 107.27°)
OKLaboklab(57.36% -0.0443 0.1038)
OKLCHoklch(57.36% 0.113 113.1)
XYZxyz(15.7784, 19.3654, 4.4965)
Luminance0.1936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F23 #29237F
analogous
#7F5723 #797F23 #4B7F23
triadic
#797F23 #23797F #7F2379
tetradic
#797F23 #237F57 #29237F #7F234B
square
#797F23 #237F57 #29237F #7F234B
split-complementary
#797F23 #234B7F #57237F
monochromatic
#1E1F09 #4B4F16 #797F23 #A7AF30 #C6CE4E

Accessibility & contrast

On white

4.31
#797F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#797F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F23
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F23#FFFFFF#000000##000000
##797F231.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#897913
Deuteranopia (green-blind)
#897B2A
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f23;
/* rgb */ color: rgb(121, 127, 35);
/* oklch */ color: oklch(57.4% 0.113 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a464',
    500: '#797f23',
    950: '#000000',
  },
}
SCSS
$custom: #797f23;
$custom-light: #a2a464;
$custom-dark: #000000;
JSON
{
  "hex": "#797f23",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 35
  },
  "hsl": {
    "h": 63.913,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57358,
    "c": 0.11282,
    "h": 113.1
  },
  "luminance": 0.19365
}

Semantic roles & 50–950 ramp

primary
#797F23
secondary
#534CB1
accent
#48E052
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F23

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

Preview Lab → · Contrast checker → · Palette generator →

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