#797A25#797A25

#797A25 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.106 H 110.0°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#797A25
RGBrgb(121, 122, 37)
HSLhsl(61, 53%, 31%)
HSVhsv(61, 70%, 48%)
CMYKcmyk(0.8%, 0%, 69.7%, 52.2%)
CIE-LABlab(49.64, -11.65, 44.29)
CIE-LCHlch(49.64, 45.80, 104.74°)
OKLaboklab(56.18% -0.0362 0.0993)
OKLCHoklch(56.18% 0.106 110)
XYZxyz(15.1791, 18.1180, 4.4474)
Luminance0.1812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A25 #26257A
analogous
#7A5025 #797A25 #4E7A25
triadic
#797A25 #25797A #7A2579
tetradic
#797A25 #257A50 #26257A #7A254E
square
#797A25 #257A50 #26257A #7A254E
split-complementary
#797A25 #254E7A #50257A
monochromatic
#1C1C09 #4A4B17 #797A25 #A8A933 #C8CA50

Accessibility & contrast

On white

4.54
#797A25 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#797A25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A25
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A25#FFFFFF#000000##000000
##797A251.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#847518
Deuteranopia (green-blind)
#85772B
Tritanopia (blue-blind)
#827269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a25;
/* rgb */ color: rgb(121, 122, 37);
/* oklch */ color: oklch(56.2% 0.106 110.0);
Tailwind
colors: {
  custom: {
    50: '#a2a065',
    500: '#797a25',
    950: '#000000',
  },
}
SCSS
$custom: #797a25;
$custom-light: #a2a065;
$custom-dark: #000000;
JSON
{
  "hex": "#797a25",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 37
  },
  "hsl": {
    "h": 60.706,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56184,
    "c": 0.10568,
    "h": 110
  },
  "luminance": 0.18118
}

Semantic roles & 50–950 ramp

primary
#797A25
secondary
#504EAC
accent
#4BDD4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A25

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

Preview Lab → · Contrast checker → · Palette generator →

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