#798420#798420

#798420 is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.5% C 0.121 H 115.8°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#798420
RGBrgb(121, 132, 32)
HSLhsl(67, 61%, 32%)
HSVhsv(67, 76%, 52%)
CMYKcmyk(8.3%, 0%, 75.8%, 48.2%)
CIE-LABlab(52.59, -17.30, 49.15)
CIE-LCHlch(52.59, 52.10, 109.39°)
OKLaboklab(58.54% -0.0524 0.1086)
OKLCHoklch(58.54% 0.121 115.8)
XYZxyz(16.3976, 20.6720, 4.4925)
Luminance0.2067 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798420 #2B2084
analogous
#845D20 #798420 #478420
triadic
#798420 #207984 #842079
tetradic
#798420 #20845D #2B2084 #842047
square
#798420 #20845D #2B2084 #842047
split-complementary
#798420 #204784 #5D2084
monochromatic
#1F2108 #4C5314 #798420 #A6B52C #C4D34B

Accessibility & contrast

On white

4.09
#798420 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#798420 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798420
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798420#FFFFFF#000000##000000
##7984201.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0B
Deuteranopia (green-blind)
#8D7E28
Tritanopia (blue-blind)
#817C71
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798420;
/* rgb */ color: rgb(121, 132, 32);
/* oklch */ color: oklch(58.5% 0.121 115.8);
Tailwind
colors: {
  custom: {
    50: '#a3a764',
    500: '#798420',
    950: '#000000',
  },
}
SCSS
$custom: #798420;
$custom-light: #a3a764;
$custom-dark: #000000;
JSON
{
  "hex": "#798420",
  "rgb": {
    "r": 121,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 66.6,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58536,
    "c": 0.12061,
    "h": 115.8
  },
  "luminance": 0.20672
}

Semantic roles & 50–950 ramp

primary
#798420
secondary
#564AB6
accent
#44E455
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798420

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

Preview Lab → · Contrast checker → · Palette generator →

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