#798224#798224

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

Color values

HEX#798224
RGBrgb(121, 130, 36)
HSLhsl(66, 57%, 33%)
HSVhsv(66, 72%, 51%)
CMYKcmyk(6.9%, 0%, 72.3%, 49%)
CIE-LABlab(52.02, -16.02, 47.08)
CIE-LCHlch(52.02, 49.73, 108.80°)
OKLaboklab(58.08% -0.0485 0.105)
OKLCHoklch(58.08% 0.116 114.8)
XYZxyz(16.1867, 20.1579, 4.7069)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798224 #2D2482
analogous
#825C24 #798224 #4A8224
triadic
#798224 #247982 #822479
tetradic
#798224 #24825C #2D2482 #82244A
square
#798224 #24825C #2D2482 #82244A
split-complementary
#798224 #244A82 #5C2482
monochromatic
#202209 #4C5217 #798224 #A6B231 #C3CF51

Accessibility & contrast

On white

4.17
#798224 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798224#FFFFFF#000000##000000
##7982241.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B14
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#817A70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798224;
/* rgb */ color: rgb(121, 130, 36);
/* oklch */ color: oklch(58.1% 0.116 114.8);
Tailwind
colors: {
  custom: {
    50: '#a2a665',
    500: '#798224',
    950: '#000000',
  },
}
SCSS
$custom: #798224;
$custom-light: #a2a665;
$custom-dark: #000000;
JSON
{
  "hex": "#798224",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 36
  },
  "hsl": {
    "h": 65.745,
    "s": 56.627,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58084,
    "c": 0.11565,
    "h": 114.8
  },
  "luminance": 0.20158
}

Semantic roles & 50–950 ramp

primary
#798224
secondary
#584FB3
accent
#48E056
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798224

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

Preview Lab → · Contrast checker → · Palette generator →

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