#798151#798151

#798151 is a mid, moderate yellow-green. Relative luminance 0.204; OKLCH L 58.4% C 0.069 H 116.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#798151
RGBrgb(121, 129, 81)
HSLhsl(70, 23%, 41%)
HSVhsv(70, 37%, 51%)
CMYKcmyk(6.2%, 0%, 37.2%, 49.4%)
CIE-LABlab(52.24, -11.22, 25.06)
CIE-LCHlch(52.24, 27.46, 114.11°)
OKLaboklab(58.43% -0.0305 0.0618)
OKLCHoklch(58.43% 0.069 116.3)
XYZxyz(17.2207, 20.3597, 10.8056)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798151 #595181
analogous
#817151 #798151 #618151
triadic
#798151 #517981 #815179
tetradic
#798151 #518171 #595181 #815161
square
#798151 #518171 #595181 #815161
split-complementary
#798151 #516181 #715181
monochromatic
#323622 #565B39 #798151 #9AA36C #B4BA92

Accessibility & contrast

On white

4.14
#798151 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#798151 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798151
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798151#FFFFFF#000000##000000
##7981511.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#877C4E
Deuteranopia (green-blind)
#877D53
Tritanopia (blue-blind)
#7E7C75
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798151;
/* rgb */ color: rgb(121, 129, 81);
/* oklch */ color: oklch(58.4% 0.069 116.3);
Tailwind
colors: {
  custom: {
    50: '#a0a582',
    500: '#798151',
    950: '#000000',
  },
}
SCSS
$custom: #798151;
$custom-light: #a0a582;
$custom-dark: #000000;
JSON
{
  "hex": "#798151",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 81
  },
  "hsl": {
    "h": 70,
    "s": 22.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.58434,
    "c": 0.06889,
    "h": 116.3
  },
  "luminance": 0.2036
}

Semantic roles & 50–950 ramp

primary
#798151
secondary
#8C86A8
accent
#68BF77
background
#F9FAF8
surface
#F2F4EF
border
#CCCECA
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #798151

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

Preview Lab → · Contrast checker → · Palette generator →

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