#797D27#797D27

#797D27 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.108 H 111.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#797D27
RGBrgb(121, 125, 39)
HSLhsl(63, 52%, 32%)
HSVhsv(63, 69%, 49%)
CMYKcmyk(3.2%, 0%, 68.8%, 51%)
CIE-LABlab(50.55, -13.16, 44.37)
CIE-LCHlch(50.55, 46.28, 106.52°)
OKLaboklab(56.91% -0.0402 0.0998)
OKLCHoklch(56.91% 0.108 111.9)
XYZxyz(15.5854, 18.8790, 4.7421)
Luminance0.1888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D27 #2B277D
analogous
#7D5627 #797D27 #4E7D27
triadic
#797D27 #27797D #7D2779
tetradic
#797D27 #277D56 #2B277D #7D274E
square
#797D27 #277D56 #2B277D #7D274E
split-complementary
#797D27 #274E7D #56277D
monochromatic
#1F200A #4C4E18 #797D27 #A6AC36 #C4CA55

Accessibility & contrast

On white

4.40
#797D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#797D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D27
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D27#FFFFFF#000000##000000
##797D271.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#87771B
Deuteranopia (green-blind)
#87792D
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d27;
/* rgb */ color: rgb(121, 125, 39);
/* oklch */ color: oklch(56.9% 0.108 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a266',
    500: '#797d27',
    950: '#000000',
  },
}
SCSS
$custom: #797d27;
$custom-light: #a2a266;
$custom-dark: #000000;
JSON
{
  "hex": "#797d27",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 62.791,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56914,
    "c": 0.10759,
    "h": 111.9
  },
  "luminance": 0.18879
}

Semantic roles & 50–950 ramp

primary
#797D27
secondary
#5651AF
accent
#4CDC53
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D27

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

Preview Lab → · Contrast checker → · Palette generator →

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