#797F2A#797F2A

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

Color values

HEX#797F2A
RGBrgb(121, 127, 42)
HSLhsl(64, 50%, 33%)
HSVhsv(64, 67%, 50%)
CMYKcmyk(4.7%, 0%, 66.9%, 50.2%)
CIE-LABlab(51.16, -14.04, 43.71)
CIE-LCHlch(51.16, 45.91, 107.81°)
OKLaboklab(57.42% -0.0423 0.0989)
OKLCHoklch(57.42% 0.108 113.2)
XYZxyz(15.8929, 19.4112, 5.0996)
Luminance0.1941 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F2A #302A7F
analogous
#7F5A2A #797F2A #4E7F2A
triadic
#797F2A #2A797F #7F2A79
tetradic
#797F2A #2A7F5A #302A7F #7F2A4E
square
#797F2A #2A7F5A #302A7F #7F2A4E
split-complementary
#797F2A #2A4E7F #5A2A7F
monochromatic
#21230C #4D511B #797F2A #A5AD39 #C1C95B

Accessibility & contrast

On white

4.30
#797F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797F2A#FFFFFF#000000##000000
##797F2A1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88791F
Deuteranopia (green-blind)
#887B30
Tritanopia (blue-blind)
#81776E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f2a;
/* rgb */ color: rgb(121, 127, 42);
/* oklch */ color: oklch(57.4% 0.108 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a468',
    500: '#797f2a',
    950: '#000000',
  },
}
SCSS
$custom: #797f2a;
$custom-light: #a2a468;
$custom-dark: #000000;
JSON
{
  "hex": "#797f2a",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 42
  },
  "hsl": {
    "h": 64.235,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57417,
    "c": 0.1076,
    "h": 113.2
  },
  "luminance": 0.19411
}

Semantic roles & 50–950 ramp

primary
#797F2A
secondary
#5D57AE
accent
#4EDA58
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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