#798256#798256

#798256 is a mid, moderate yellow-green. Relative luminance 0.207; OKLCH L 58.8% C 0.064 H 117.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#798256
RGBrgb(121, 130, 86)
HSLhsl(72, 20%, 42%)
HSVhsv(72, 34%, 51%)
CMYKcmyk(6.9%, 0%, 33.8%, 49%)
CIE-LABlab(52.62, -11.08, 22.76)
CIE-LCHlch(52.62, 25.32, 115.95°)
OKLaboklab(58.77% -0.0299 0.0566)
OKLCHoklch(58.77% 0.064 117.8)
XYZxyz(17.5475, 20.7022, 11.8738)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798256 #5F5682
analogous
#827556 #798256 #638256
triadic
#798256 #567982 #825679
tetradic
#798256 #568275 #5F5682 #825663
square
#798256 #568275 #5F5682 #825663
split-complementary
#798256 #566382 #755682
monochromatic
#343825 #575D3E #798256 #99A273 #B4BB98

Accessibility & contrast

On white

4.09
#798256 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#798256 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798256
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798256#FFFFFF#000000##000000
##7982561.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#887D53
Deuteranopia (green-blind)
#877E58
Tritanopia (blue-blind)
#7D7D77
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798256;
/* rgb */ color: rgb(121, 130, 86);
/* oklch */ color: oklch(58.8% 0.064 117.8);
Tailwind
colors: {
  custom: {
    50: '#a0a686',
    500: '#798256',
    950: '#000000',
  },
}
SCSS
$custom: #798256;
$custom-light: #a0a686;
$custom-dark: #000000;
JSON
{
  "hex": "#798256",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 86
  },
  "hsl": {
    "h": 72.273,
    "s": 20.37,
    "l": 42.353
  },
  "oklch": {
    "l": 0.58765,
    "c": 0.06398,
    "h": 117.8
  },
  "luminance": 0.20702
}

Semantic roles & 50–950 ramp

primary
#798256
secondary
#918BA8
accent
#6BBD7C
background
#F9FAF8
surface
#F2F4EF
border
#CCCECA
text
#0F0F0B
muted
#7E7F7C

Preview Lab

Preview with #798256

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

Preview Lab → · Contrast checker → · Palette generator →

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