#797E25#797E25

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

Color values

HEX#797E25
RGBrgb(121, 126, 37)
HSLhsl(63, 55%, 32%)
HSVhsv(63, 71%, 49%)
CMYKcmyk(4%, 0%, 70.6%, 50.6%)
CIE-LABlab(50.83, -13.83, 45.49)
CIE-LCHlch(50.83, 47.55, 106.90°)
OKLaboklab(57.14% -0.0423 0.1018)
OKLCHoklch(57.14% 0.11 112.5)
XYZxyz(15.6804, 19.1206, 4.6145)
Luminance0.1912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E25 #2A257E
analogous
#7E5725 #797E25 #4D7E25
triadic
#797E25 #25797E #7E2579
tetradic
#797E25 #257E57 #2A257E #7E254D
square
#797E25 #257E57 #2A257E #7E254D
split-complementary
#797E25 #254D7E #57257E
monochromatic
#1E1F09 #4C4F17 #797E25 #A6AD33 #C5CC51

Accessibility & contrast

On white

4.35
#797E25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797E25#FFFFFF#000000##000000
##797E251.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797e25;
/* rgb */ color: rgb(121, 126, 37);
/* oklch */ color: oklch(57.1% 0.110 112.5);
Tailwind
colors: {
  custom: {
    50: '#a2a365',
    500: '#797e25',
    950: '#000000',
  },
}
SCSS
$custom: #797e25;
$custom-light: #a2a365;
$custom-dark: #000000;
JSON
{
  "hex": "#797e25",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 37
  },
  "hsl": {
    "h": 63.371,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57135,
    "c": 0.11025,
    "h": 112.5
  },
  "luminance": 0.1912
}

Semantic roles & 50–950 ramp

primary
#797E25
secondary
#544FB0
accent
#4ADE52
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797E25

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

Preview Lab → · Contrast checker → · Palette generator →

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