#798222#798222

#798222 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.117 H 114.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#798222
RGBrgb(121, 130, 34)
HSLhsl(66, 59%, 32%)
HSVhsv(66, 74%, 51%)
CMYKcmyk(6.9%, 0%, 73.8%, 49%)
CIE-LABlab(52.00, -16.13, 47.84)
CIE-LCHlch(52.00, 50.49, 108.64°)
OKLaboklab(58.07% -0.049 0.1062)
OKLCHoklch(58.07% 0.117 114.8)
XYZxyz(16.1570, 20.1460, 4.5505)
Luminance0.2015 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798222 #2B2282
analogous
#825B22 #798222 #498222
triadic
#798222 #227982 #822279
tetradic
#798222 #22825B #2B2282 #822249
square
#798222 #22825B #2B2282 #822249
split-complementary
#798222 #224982 #5B2282
monochromatic
#1F2109 #4C5115 #798222 #A6B32F #C4D14E

Accessibility & contrast

On white

4.18
#798222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#798222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798222
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798222#FFFFFF#000000##000000
##7982221.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B10
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#817A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798222;
/* rgb */ color: rgb(121, 130, 34);
/* oklch */ color: oklch(58.1% 0.117 114.8);
Tailwind
colors: {
  custom: {
    50: '#a3a664',
    500: '#798222',
    950: '#000000',
  },
}
SCSS
$custom: #798222;
$custom-light: #a3a664;
$custom-dark: #000000;
JSON
{
  "hex": "#798222",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 65.625,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58069,
    "c": 0.11699,
    "h": 114.8
  },
  "luminance": 0.20146
}

Semantic roles & 50–950 ramp

primary
#798222
secondary
#564CB4
accent
#46E255
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798222

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

Preview Lab → · Contrast checker → · Palette generator →

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