#797927#797927

#797927 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 56.0% C 0.103 H 109.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#797927
RGBrgb(121, 121, 39)
HSLhsl(60, 51%, 31%)
HSVhsv(60, 68%, 47%)
CMYKcmyk(0%, 0%, 67.8%, 52.5%)
CIE-LABlab(49.36, -10.98, 43.15)
CIE-LCHlch(49.36, 44.52, 104.28°)
OKLaboklab(55.97% -0.0341 0.0972)
OKLCHoklch(55.97% 0.103 109.3)
XYZxyz(15.0892, 17.8866, 4.5767)
Luminance0.1789 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797927 #272779
analogous
#795027 #797927 #507927
triadic
#797927 #277979 #792779
tetradic
#797927 #277950 #272779 #792750
square
#797927 #277950 #272779 #792750
split-complementary
#797927 #275079 #502779
monochromatic
#1C1C09 #4B4B18 #797927 #A7A736 #C8C853

Accessibility & contrast

On white

4.59
#797927 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#797927 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797927
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797927#FFFFFF#000000##FFFFFF
##7979271.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83741C
Deuteranopia (green-blind)
#84772C
Tritanopia (blue-blind)
#827168
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797927;
/* rgb */ color: rgb(121, 121, 39);
/* oklch */ color: oklch(56.0% 0.103 109.3);
Tailwind
colors: {
  custom: {
    50: '#a29f66',
    500: '#797927',
    950: '#000000',
  },
}
SCSS
$custom: #797927;
$custom-light: #a29f66;
$custom-dark: #000000;
JSON
{
  "hex": "#797927",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 39
  },
  "hsl": {
    "h": 60,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55965,
    "c": 0.10303,
    "h": 109.3
  },
  "luminance": 0.17886
}

Semantic roles & 50–950 ramp

primary
#797927
secondary
#5151AB
accent
#4DDB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797927

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

Preview Lab → · Contrast checker → · Palette generator →

#797927 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva