#797B27#797B27

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

Color values

HEX#797B27
RGBrgb(121, 123, 39)
HSLhsl(61, 52%, 32%)
HSVhsv(61, 68%, 48%)
CMYKcmyk(1.6%, 0%, 68.3%, 51.8%)
CIE-LABlab(49.95, -12.07, 43.76)
CIE-LCHlch(49.95, 45.39, 105.43°)
OKLaboklab(56.44% -0.0371 0.0985)
OKLCHoklch(56.44% 0.105 110.7)
XYZxyz(15.3348, 18.3777, 4.6585)
Luminance0.1838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B27 #29277B
analogous
#7B5327 #797B27 #4F7B27
triadic
#797B27 #27797B #7B2779
tetradic
#797B27 #277B53 #29277B #7B274F
square
#797B27 #277B53 #29277B #7B274F
split-complementary
#797B27 #274F7B #53277B
monochromatic
#1E1E0A #4B4D18 #797B27 #A7A936 #C6C954

Accessibility & contrast

On white

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

On black

4.68
#797B27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B27
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B27#FFFFFF#000000##000000
##797B271.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#85761B
Deuteranopia (green-blind)
#85782D
Tritanopia (blue-blind)
#81736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b27;
/* rgb */ color: rgb(121, 123, 39);
/* oklch */ color: oklch(56.4% 0.105 110.7);
Tailwind
colors: {
  custom: {
    50: '#a2a166',
    500: '#797b27',
    950: '#000000',
  },
}
SCSS
$custom: #797b27;
$custom-light: #a2a166;
$custom-dark: #000000;
JSON
{
  "hex": "#797b27",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 39
  },
  "hsl": {
    "h": 61.429,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56439,
    "c": 0.10528,
    "h": 110.7
  },
  "luminance": 0.18377
}

Semantic roles & 50–950 ramp

primary
#797B27
secondary
#5351AD
accent
#4CDB50
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B27

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

Preview Lab → · Contrast checker → · Palette generator →

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