#56791F#56791F

#56791F is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 53.1% C 0.123 H 128.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#56791F
RGBrgb(86, 121, 31)
HSLhsl(83, 59%, 30%)
HSVhsv(83, 74%, 47%)
CMYKcmyk(28.9%, 0%, 74.4%, 52.5%)
CIE-LABlab(46.65, -26.94, 42.88)
CIE-LCHlch(46.65, 50.64, 122.14°)
OKLaboklab(53.09% -0.0769 0.0962)
OKLCHoklch(53.09% 0.123 128.6)
XYZxyz(10.9224, 15.7518, 3.7610)
Luminance0.1575 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56791F #421F79
analogous
#796F1F #56791F #29791F
triadic
#56791F #1F5679 #791F56
tetradic
#56791F #1F796F #421F79 #791F29
square
#56791F #1F796F #421F79 #791F29
split-complementary
#56791F #1F2979 #6F1F79
monochromatic
#111806 #334813 #56791F #79AA2B #99CF43

Accessibility & contrast

On white

5.06
#56791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#56791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #56791F
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56791F#FFFFFF#000000##FFFFFF
##56791F1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#7A6E27
Tritanopia (blue-blind)
#597367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #56791f;
/* rgb */ color: rgb(86, 121, 31);
/* oklch */ color: oklch(53.1% 0.123 128.6);
Tailwind
colors: {
  custom: {
    50: '#89a061',
    500: '#56791f',
    950: '#000000',
  },
}
SCSS
$custom: #56791f;
$custom-light: #89a061;
$custom-dark: #000000;
JSON
{
  "hex": "#56791f",
  "rgb": {
    "r": 86,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 83.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53094,
    "c": 0.12318,
    "h": 128.6
  },
  "luminance": 0.15752
}

Semantic roles & 50–950 ramp

primary
#56791F
secondary
#6F47AC
accent
#45E282
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #56791F

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

Preview Lab → · Contrast checker → · Palette generator →

#56791F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva