#798520#798520

#798520 is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.8% C 0.122 H 116.3°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#798520
RGBrgb(121, 133, 32)
HSLhsl(67, 61%, 32%)
HSVhsv(67, 76%, 52%)
CMYKcmyk(9%, 0%, 75.9%, 47.8%)
CIE-LABlab(52.89, -17.82, 49.43)
CIE-LCHlch(52.89, 52.55, 109.82°)
OKLaboklab(58.78% -0.0539 0.1092)
OKLCHoklch(58.78% 0.122 116.3)
XYZxyz(16.5338, 20.9445, 4.5379)
Luminance0.2094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798520 #2C2085
analogous
#855F20 #798520 #468520
triadic
#798520 #207985 #852079
tetradic
#798520 #20855F #2C2085 #852046
square
#798520 #20855F #2C2085 #852046
split-complementary
#798520 #204685 #5F2085
monochromatic
#1F2208 #4C5414 #798520 #A6B62C #C4D44C

Accessibility & contrast

On white

4.05
#798520 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#798520 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798520
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798520#FFFFFF#000000##000000
##7985201.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0A
Deuteranopia (green-blind)
#8E7F29
Tritanopia (blue-blind)
#817D72
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798520;
/* rgb */ color: rgb(121, 133, 32);
/* oklch */ color: oklch(58.8% 0.122 116.3);
Tailwind
colors: {
  custom: {
    50: '#a3a864',
    500: '#798520',
    950: '#000000',
  },
}
SCSS
$custom: #798520;
$custom-light: #a3a864;
$custom-dark: #000000;
JSON
{
  "hex": "#798520",
  "rgb": {
    "r": 121,
    "g": 133,
    "b": 32
  },
  "hsl": {
    "h": 67.129,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58777,
    "c": 0.12179,
    "h": 116.3
  },
  "luminance": 0.20944
}

Semantic roles & 50–950 ramp

primary
#798520
secondary
#574AB7
accent
#43E457
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798520

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

Preview Lab → · Contrast checker → · Palette generator →

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