#797B25#797B25

#797B25 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.4% C 0.107 H 110.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#797B25
RGBrgb(121, 123, 37)
HSLhsl(61, 54%, 31%)
HSVhsv(61, 70%, 48%)
CMYKcmyk(1.6%, 0%, 69.9%, 51.8%)
CIE-LABlab(49.94, -12.20, 44.59)
CIE-LCHlch(49.94, 46.23, 105.30°)
OKLaboklab(56.42% -0.0377 0.0999)
OKLCHoklch(56.42% 0.107 110.7)
XYZxyz(15.3025, 18.3648, 4.4886)
Luminance0.1836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B25 #27257B
analogous
#7B5225 #797B25 #4E7B25
triadic
#797B25 #25797B #7B2579
tetradic
#797B25 #257B52 #27257B #7B254E
square
#797B25 #257B52 #27257B #7B254E
split-complementary
#797B25 #254E7B #52257B
monochromatic
#1C1D09 #4B4C17 #797B25 #A7AA33 #C8CA50

Accessibility & contrast

On white

4.49
#797B25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#797B25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B25
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B25#FFFFFF#000000##000000
##797B251.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#857518
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#82736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b25;
/* rgb */ color: rgb(121, 123, 37);
/* oklch */ color: oklch(56.4% 0.107 110.7);
Tailwind
colors: {
  custom: {
    50: '#a2a165',
    500: '#797b25',
    950: '#000000',
  },
}
SCSS
$custom: #797b25;
$custom-light: #a2a165;
$custom-dark: #000000;
JSON
{
  "hex": "#797b25",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 37
  },
  "hsl": {
    "h": 61.395,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56421,
    "c": 0.1068,
    "h": 110.7
  },
  "luminance": 0.18364
}

Semantic roles & 50–950 ramp

primary
#797B25
secondary
#514FAD
accent
#4BDD4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B25

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

Preview Lab → · Contrast checker → · Palette generator →

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