#798720#798720

#798720 is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.3% C 0.124 H 117.2°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#798720
RGBrgb(121, 135, 32)
HSLhsl(68, 62%, 33%)
HSVhsv(68, 76%, 53%)
CMYKcmyk(10.4%, 0%, 76.3%, 47.1%)
CIE-LABlab(53.49, -18.86, 50.00)
CIE-LCHlch(53.49, 53.44, 110.67°)
OKLaboklab(59.26% -0.0568 0.1104)
OKLCHoklch(59.26% 0.124 117.2)
XYZxyz(16.8103, 21.4974, 4.6301)
Luminance0.2150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798720 #2E2087
analogous
#876120 #798720 #468720
triadic
#798720 #207987 #872079
tetradic
#798720 #208761 #2E2087 #872046
square
#798720 #208761 #2E2087 #872046
split-complementary
#798720 #204687 #612087
monochromatic
#202409 #4D5614 #798720 #A5B82C #C2D54D

Accessibility & contrast

On white

3.96
#798720 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#798720 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798720
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798720#FFFFFF#000000##000000
##7987201.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F09
Deuteranopia (green-blind)
#8F8029
Tritanopia (blue-blind)
#817F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798720;
/* rgb */ color: rgb(121, 135, 32);
/* oklch */ color: oklch(59.3% 0.124 117.2);
Tailwind
colors: {
  custom: {
    50: '#a3a964',
    500: '#798720',
    950: '#000000',
  },
}
SCSS
$custom: #798720;
$custom-light: #a3a964;
$custom-dark: #000000;
JSON
{
  "hex": "#798720",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 32
  },
  "hsl": {
    "h": 68.155,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59259,
    "c": 0.12416,
    "h": 117.2
  },
  "luminance": 0.21497
}

Semantic roles & 50–950 ramp

primary
#798720
secondary
#5A4BB8
accent
#43E559
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798720

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

Preview Lab → · Contrast checker → · Palette generator →

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