#798322#798322

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

Color values

HEX#798322
RGBrgb(121, 131, 34)
HSLhsl(66, 59%, 32%)
HSVhsv(66, 74%, 51%)
CMYKcmyk(7.6%, 0%, 74%, 48.6%)
CIE-LABlab(52.30, -16.66, 48.13)
CIE-LCHlch(52.30, 50.93, 109.10°)
OKLaboklab(58.31% -0.0505 0.1068)
OKLCHoklch(58.31% 0.118 115.3)
XYZxyz(16.2906, 20.4133, 4.5951)
Luminance0.2041 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798322 #2C2283
analogous
#835D22 #798322 #488322
triadic
#798322 #227983 #832279
tetradic
#798322 #22835D #2C2283 #832248
square
#798322 #22835D #2C2283 #832248
split-complementary
#798322 #224883 #5D2283
monochromatic
#1F2209 #4C5215 #798322 #A6B42F #C4D14E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798322#FFFFFF#000000##000000
##7983221.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)
#8D7C10
Deuteranopia (green-blind)
#8C7E2A
Tritanopia (blue-blind)
#817B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798322;
/* rgb */ color: rgb(121, 131, 34);
/* oklch */ color: oklch(58.3% 0.118 115.3);
Tailwind
colors: {
  custom: {
    50: '#a3a664',
    500: '#798322',
    950: '#000000',
  },
}
SCSS
$custom: #798322;
$custom-light: #a3a664;
$custom-dark: #000000;
JSON
{
  "hex": "#798322",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 34
  },
  "hsl": {
    "h": 66.186,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58309,
    "c": 0.11817,
    "h": 115.3
  },
  "luminance": 0.20413
}

Semantic roles & 50–950 ramp

primary
#798322
secondary
#574CB4
accent
#46E256
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798322

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

Preview Lab → · Contrast checker → · Palette generator →

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