#798022#798022

#798022 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.6% C 0.115 H 113.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#798022
RGBrgb(121, 128, 34)
HSLhsl(64, 58%, 32%)
HSVhsv(64, 73%, 50%)
CMYKcmyk(5.5%, 0%, 73.4%, 49.8%)
CIE-LABlab(51.40, -15.07, 47.26)
CIE-LCHlch(51.40, 49.60, 107.69°)
OKLaboklab(57.59% -0.0461 0.105)
OKLCHoklch(57.59% 0.115 113.7)
XYZxyz(15.8935, 19.6191, 4.4627)
Luminance0.1962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798022 #292280
analogous
#805822 #798022 #4A8022
triadic
#798022 #227980 #802279
tetradic
#798022 #228058 #292280 #80224A
square
#798022 #228058 #292280 #80224A
split-complementary
#798022 #224A80 #582280
monochromatic
#1E1F08 #4B5015 #798022 #A7B02F #C6D04D

Accessibility & contrast

On white

4.26
#798022 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#798022 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798022
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798022#FFFFFF#000000##000000
##7980221.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A11
Deuteranopia (green-blind)
#8A7B29
Tritanopia (blue-blind)
#81786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #798022;
/* rgb */ color: rgb(121, 128, 34);
/* oklch */ color: oklch(57.6% 0.115 113.7);
Tailwind
colors: {
  custom: {
    50: '#a3a464',
    500: '#798022',
    950: '#000000',
  },
}
SCSS
$custom: #798022;
$custom-light: #a3a464;
$custom-dark: #000000;
JSON
{
  "hex": "#798022",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 64.468,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57589,
    "c": 0.11466,
    "h": 113.7
  },
  "luminance": 0.19619
}

Semantic roles & 50–950 ramp

primary
#798022
secondary
#534BB2
accent
#47E152
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798022

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

Preview Lab → · Contrast checker → · Palette generator →

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