#798121#798121

#798121 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.8% C 0.116 H 114.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#798121
RGBrgb(121, 129, 33)
HSLhsl(65, 59%, 32%)
HSVhsv(65, 74%, 51%)
CMYKcmyk(6.2%, 0%, 74.4%, 49.4%)
CIE-LABlab(51.70, -15.66, 47.92)
CIE-LCHlch(51.70, 50.42, 108.09°)
OKLaboklab(57.82% -0.0478 0.1062)
OKLCHoklch(57.82% 0.116 114.2)
XYZxyz(16.0104, 19.8756, 4.4315)
Luminance0.1988 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798121 #292181
analogous
#815921 #798121 #498121
triadic
#798121 #217981 #812179
tetradic
#798121 #218159 #292181 #812149
square
#798121 #218159 #292181 #812149
split-complementary
#798121 #214981 #592181
monochromatic
#1E2008 #4B5015 #798121 #A7B22D #C6D14B

Accessibility & contrast

On white

4.22
#798121 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#798121 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798121
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798121#FFFFFF#000000##000000
##7981211.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A0F
Deuteranopia (green-blind)
#8A7C29
Tritanopia (blue-blind)
#81796E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798121;
/* rgb */ color: rgb(121, 129, 33);
/* oklch */ color: oklch(57.8% 0.116 114.2);
Tailwind
colors: {
  custom: {
    50: '#a3a564',
    500: '#798121',
    950: '#000000',
  },
}
SCSS
$custom: #798121;
$custom-light: #a3a564;
$custom-dark: #000000;
JSON
{
  "hex": "#798121",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 33
  },
  "hsl": {
    "h": 65,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57822,
    "c": 0.11648,
    "h": 114.2
  },
  "luminance": 0.19875
}

Semantic roles & 50–950 ramp

primary
#798121
secondary
#534AB4
accent
#45E252
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798121

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

Preview Lab → · Contrast checker → · Palette generator →

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