#798321#798321

#798321 is a mid, moderate yellow. Relative luminance 0.204; OKLCH L 58.3% C 0.119 H 115.3°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#798321
RGBrgb(121, 131, 33)
HSLhsl(66, 60%, 32%)
HSVhsv(66, 75%, 51%)
CMYKcmyk(7.6%, 0%, 74.8%, 48.6%)
CIE-LABlab(52.30, -16.72, 48.50)
CIE-LCHlch(52.30, 51.30, 109.02°)
OKLaboklab(58.3% -0.0507 0.1074)
OKLCHoklch(58.3% 0.119 115.3)
XYZxyz(16.2764, 20.4076, 4.5202)
Luminance0.2041 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798321 #2B2183
analogous
#835C21 #798321 #488321
triadic
#798321 #217983 #832179
tetradic
#798321 #21835C #2B2183 #832148
square
#798321 #21835C #2B2183 #832148
split-complementary
#798321 #214883 #5C2183
monochromatic
#1F2108 #4C5215 #798321 #A6B42D #C4D24C

Accessibility & contrast

On white

4.13
#798321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#798321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798321
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798321#FFFFFF#000000##000000
##7983211.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0E
Deuteranopia (green-blind)
#8C7E29
Tritanopia (blue-blind)
#817B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798321;
/* rgb */ color: rgb(121, 131, 33);
/* oklch */ color: oklch(58.3% 0.119 115.3);
Tailwind
colors: {
  custom: {
    50: '#a3a664',
    500: '#798321',
    950: '#000000',
  },
}
SCSS
$custom: #798321;
$custom-light: #a3a664;
$custom-dark: #000000;
JSON
{
  "hex": "#798321",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 33
  },
  "hsl": {
    "h": 66.122,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58302,
    "c": 0.11881,
    "h": 115.3
  },
  "luminance": 0.20407
}

Semantic roles & 50–950 ramp

primary
#798321
secondary
#564BB5
accent
#45E355
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798321

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

Preview Lab → · Contrast checker → · Palette generator →

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