#798422#798422

#798422 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.119 H 115.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#798422
RGBrgb(121, 132, 34)
HSLhsl(67, 59%, 33%)
HSVhsv(67, 74%, 52%)
CMYKcmyk(8.3%, 0%, 74.2%, 48.2%)
CIE-LABlab(52.60, -17.19, 48.42)
CIE-LCHlch(52.60, 51.38, 109.55°)
OKLaboklab(58.55% -0.0519 0.1075)
OKLCHoklch(58.55% 0.119 115.8)
XYZxyz(16.4256, 20.6832, 4.6400)
Luminance0.2068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798422 #2D2284
analogous
#845E22 #798422 #488422
triadic
#798422 #227984 #842279
tetradic
#798422 #22845E #2D2284 #842248
square
#798422 #22845E #2D2284 #842248
split-complementary
#798422 #224884 #5E2284
monochromatic
#202309 #4C5315 #798422 #A6B52F #C3D24F

Accessibility & contrast

On white

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

On black

5.14
#798422 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798422
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798422#FFFFFF#000000##000000
##7984221.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798422;
/* rgb */ color: rgb(121, 132, 34);
/* oklch */ color: oklch(58.6% 0.119 115.8);
Tailwind
colors: {
  custom: {
    50: '#a3a765',
    500: '#798422',
    950: '#000000',
  },
}
SCSS
$custom: #798422;
$custom-light: #a3a765;
$custom-dark: #000000;
JSON
{
  "hex": "#798422",
  "rgb": {
    "r": 121,
    "g": 132,
    "b": 34
  },
  "hsl": {
    "h": 66.735,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5855,
    "c": 0.11935,
    "h": 115.8
  },
  "luminance": 0.20683
}

Semantic roles & 50–950 ramp

primary
#798422
secondary
#584DB5
accent
#46E257
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798422

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

Preview Lab → · Contrast checker → · Palette generator →

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