#798252#798252

#798252 is a mid, moderate yellow-green. Relative luminance 0.206; OKLCH L 58.7% C 0.069 H 117.2°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#798252
RGBrgb(121, 130, 82)
HSLhsl(71, 23%, 42%)
HSVhsv(71, 37%, 51%)
CMYKcmyk(6.9%, 0%, 36.9%, 49%)
CIE-LABlab(52.55, -11.63, 24.91)
CIE-LCHlch(52.55, 27.49, 115.03°)
OKLaboklab(58.69% -0.0316 0.0614)
OKLCHoklch(58.69% 0.069 117.2)
XYZxyz(17.3908, 20.6395, 11.0487)
Luminance0.2064 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798252 #5B5282
analogous
#827352 #798252 #618252
triadic
#798252 #527982 #825279
tetradic
#798252 #528273 #5B5282 #825261
square
#798252 #528273 #5B5282 #825261
split-complementary
#798252 #526182 #735282
monochromatic
#333723 #565C3A #798252 #99A36E #B4BB93

Accessibility & contrast

On white

4.10
#798252 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#798252 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798252
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798252#FFFFFF#000000##000000
##7982521.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#887D4F
Deuteranopia (green-blind)
#877E54
Tritanopia (blue-blind)
#7E7D76
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798252;
/* rgb */ color: rgb(121, 130, 82);
/* oklch */ color: oklch(58.7% 0.069 117.2);
Tailwind
colors: {
  custom: {
    50: '#a0a683',
    500: '#798252',
    950: '#000000',
  },
}
SCSS
$custom: #798252;
$custom-light: #a0a683;
$custom-dark: #000000;
JSON
{
  "hex": "#798252",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 82
  },
  "hsl": {
    "h": 71.25,
    "s": 22.642,
    "l": 41.569
  },
  "oklch": {
    "l": 0.58688,
    "c": 0.0691,
    "h": 117.2
  },
  "luminance": 0.20639
}

Semantic roles & 50–950 ramp

primary
#798252
secondary
#8E88A8
accent
#69BF79
background
#F9FAF8
surface
#F2F4EF
border
#CCCECA
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #798252

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

Preview Lab → · Contrast checker → · Palette generator →

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