#798020#798020

#798020 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.6% C 0.116 H 113.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#798020
RGBrgb(121, 128, 32)
HSLhsl(64, 60%, 31%)
HSVhsv(64, 75%, 50%)
CMYKcmyk(5.5%, 0%, 75%, 49.8%)
CIE-LABlab(51.39, -15.18, 48.00)
CIE-LCHlch(51.39, 50.35, 107.55°)
OKLaboklab(57.58% -0.0465 0.1062)
OKLCHoklch(57.58% 0.116 113.7)
XYZxyz(15.8655, 19.6079, 4.3152)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798020 #272080
analogous
#805720 #798020 #498020
triadic
#798020 #207980 #802079
tetradic
#798020 #208057 #272080 #802049
square
#798020 #208057 #272080 #802049
split-complementary
#798020 #204980 #572080
monochromatic
#1C1E08 #4B4F14 #798020 #A7B12C #C8D149

Accessibility & contrast

On white

4.27
#798020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#798020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798020
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798020#FFFFFF#000000##000000
##7980201.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0D
Deuteranopia (green-blind)
#8A7B28
Tritanopia (blue-blind)
#81786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #798020;
/* rgb */ color: rgb(121, 128, 32);
/* oklch */ color: oklch(57.6% 0.116 113.7);
Tailwind
colors: {
  custom: {
    50: '#a3a463',
    500: '#798020',
    950: '#000000',
  },
}
SCSS
$custom: #798020;
$custom-light: #a3a463;
$custom-dark: #000000;
JSON
{
  "hex": "#798020",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 64.375,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57575,
    "c": 0.11595,
    "h": 113.7
  },
  "luminance": 0.19608
}

Semantic roles & 50–950 ramp

primary
#798020
secondary
#5149B3
accent
#45E350
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798020

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

Preview Lab → · Contrast checker → · Palette generator →

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