#797C25#797C25

#797C25 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.108 H 111.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#797C25
RGBrgb(121, 124, 37)
HSLhsl(62, 54%, 32%)
HSVhsv(62, 70%, 49%)
CMYKcmyk(2.4%, 0%, 70.2%, 51.4%)
CIE-LABlab(50.23, -12.74, 44.89)
CIE-LCHlch(50.23, 46.67, 105.85°)
OKLaboklab(56.66% -0.0392 0.1006)
OKLCHoklch(56.66% 0.108 111.3)
XYZxyz(15.4272, 18.6142, 4.5301)
Luminance0.1861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C25 #28257C
analogous
#7C5425 #797C25 #4E7C25
triadic
#797C25 #25797C #7C2579
tetradic
#797C25 #257C54 #28257C #7C254E
square
#797C25 #257C54 #28257C #7C254E
split-complementary
#797C25 #254E7C #54257C
monochromatic
#1D1E09 #4B4D17 #797C25 #A7AB33 #C7CB50

Accessibility & contrast

On white

4.45
#797C25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#797C25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C25
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C25#FFFFFF#000000##000000
##797C251.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#867618
Deuteranopia (green-blind)
#86792B
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c25;
/* rgb */ color: rgb(121, 124, 37);
/* oklch */ color: oklch(56.7% 0.108 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a165',
    500: '#797c25',
    950: '#000000',
  },
}
SCSS
$custom: #797c25;
$custom-light: #a2a165;
$custom-dark: #000000;
JSON
{
  "hex": "#797c25",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 37
  },
  "hsl": {
    "h": 62.069,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56659,
    "c": 0.10794,
    "h": 111.3
  },
  "luminance": 0.18614
}

Semantic roles & 50–950 ramp

primary
#797C25
secondary
#524FAE
accent
#4ADD4F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797C25

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

Preview Lab → · Contrast checker → · Palette generator →

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