#798620#798620

#798620 is a mid, vivid yellow. Relative luminance 0.212; OKLCH L 59.0% C 0.123 H 116.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#798620
RGBrgb(121, 134, 32)
HSLhsl(68, 61%, 33%)
HSVhsv(68, 76%, 53%)
CMYKcmyk(9.7%, 0%, 76.1%, 47.5%)
CIE-LABlab(53.19, -18.34, 49.72)
CIE-LCHlch(53.19, 52.99, 110.25°)
OKLaboklab(59.02% -0.0553 0.1098)
OKLCHoklch(59.02% 0.123 116.7)
XYZxyz(16.6714, 21.2196, 4.5838)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798620 #2D2086
analogous
#866020 #798620 #468620
triadic
#798620 #207986 #862079
tetradic
#798620 #208660 #2D2086 #862046
square
#798620 #208660 #2D2086 #862046
split-complementary
#798620 #204686 #602086
monochromatic
#202308 #4C5514 #798620 #A6B72C #C3D44C

Accessibility & contrast

On white

4.00
#798620 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#798620 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798620
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798620#FFFFFF#000000##000000
##7986201.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0A
Deuteranopia (green-blind)
#8E8029
Tritanopia (blue-blind)
#817E73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #798620;
/* rgb */ color: rgb(121, 134, 32);
/* oklch */ color: oklch(59.0% 0.123 116.7);
Tailwind
colors: {
  custom: {
    50: '#a3a964',
    500: '#798620',
    950: '#000000',
  },
}
SCSS
$custom: #798620;
$custom-light: #a3a964;
$custom-dark: #000000;
JSON
{
  "hex": "#798620",
  "rgb": {
    "r": 121,
    "g": 134,
    "b": 32
  },
  "hsl": {
    "h": 67.647,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.59018,
    "c": 0.12297,
    "h": 116.7
  },
  "luminance": 0.21219
}

Semantic roles & 50–950 ramp

primary
#798620
secondary
#584BB7
accent
#43E558
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798620

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

Preview Lab → · Contrast checker → · Palette generator →

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