#797E23#797E23

#797E23 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.112 H 112.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#797E23
RGBrgb(121, 126, 35)
HSLhsl(63, 57%, 32%)
HSVhsv(63, 72%, 49%)
CMYKcmyk(4%, 0%, 72.2%, 50.6%)
CIE-LABlab(50.81, -13.94, 46.29)
CIE-LCHlch(50.81, 48.34, 106.76°)
OKLaboklab(57.12% -0.0428 0.1031)
OKLCHoklch(57.12% 0.112 112.5)
XYZxyz(15.6499, 19.1084, 4.4537)
Luminance0.1911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E23 #28237E
analogous
#7E5623 #797E23 #4C7E23
triadic
#797E23 #23797E #7E2379
tetradic
#797E23 #237E56 #28237E #7E234C
square
#797E23 #237E56 #28237E #7E234C
split-complementary
#797E23 #234C7E #56237E
monochromatic
#1D1E08 #4B4E16 #797E23 #A7AE30 #C7CE4E

Accessibility & contrast

On white

4.36
#797E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#797E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E23
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E23#FFFFFF#000000##000000
##797E231.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#887814
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e23;
/* rgb */ color: rgb(121, 126, 35);
/* oklch */ color: oklch(57.1% 0.112 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a364',
    500: '#797e23',
    950: '#000000',
  },
}
SCSS
$custom: #797e23;
$custom-light: #a2a364;
$custom-dark: #000000;
JSON
{
  "hex": "#797e23",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 35
  },
  "hsl": {
    "h": 63.297,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57119,
    "c": 0.11166,
    "h": 112.5
  },
  "luminance": 0.19108
}

Semantic roles & 50–950 ramp

primary
#797E23
secondary
#524CB0
accent
#48E050
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797E23

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

Preview Lab → · Contrast checker → · Palette generator →

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