#797F25#797F25

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

Color values

HEX#797F25
RGBrgb(121, 127, 37)
HSLhsl(64, 55%, 32%)
HSVhsv(64, 71%, 50%)
CMYKcmyk(4.7%, 0%, 70.9%, 50.2%)
CIE-LABlab(51.13, -14.36, 45.79)
CIE-LCHlch(51.13, 47.99, 107.42°)
OKLaboklab(57.37% -0.0438 0.1024)
OKLCHoklch(57.37% 0.111 113.1)
XYZxyz(15.8089, 19.3776, 4.6574)
Luminance0.1938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F25 #2B257F
analogous
#7F5825 #797F25 #4C7F25
triadic
#797F25 #25797F #7F2579
tetradic
#797F25 #257F58 #2B257F #7F254C
square
#797F25 #257F58 #2B257F #7F254C
split-complementary
#797F25 #254C7F #58257F
monochromatic
#1F2009 #4C5017 #797F25 #A6AE33 #C4CD52

Accessibility & contrast

On white

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

On black

4.88
#797F25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F25
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F25#FFFFFF#000000##000000
##797F251.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797f25;
/* rgb */ color: rgb(121, 127, 37);
/* oklch */ color: oklch(57.4% 0.111 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a466',
    500: '#797f25',
    950: '#000000',
  },
}
SCSS
$custom: #797f25;
$custom-light: #a2a466;
$custom-dark: #000000;
JSON
{
  "hex": "#797f25",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 37
  },
  "hsl": {
    "h": 64,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57374,
    "c": 0.1114,
    "h": 113.1
  },
  "luminance": 0.19377
}

Semantic roles & 50–950 ramp

primary
#797F25
secondary
#564FB1
accent
#4ADE53
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F25

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

Preview Lab → · Contrast checker → · Palette generator →

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