#4B6817#4B6817

#4B6817 is a mid, moderate yellow-green. Relative luminance 0.115; OKLCH L 47.8% C 0.111 H 127.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#4B6817
RGBrgb(75, 104, 23)
HSLhsl(81, 64%, 25%)
HSVhsv(81, 78%, 41%)
CMYKcmyk(27.9%, 0%, 77.9%, 59.2%)
CIE-LABlab(40.34, -23.67, 39.55)
CIE-LCHlch(40.34, 46.09, 120.90°)
OKLaboklab(47.77% -0.0679 0.0882)
OKLCHoklch(47.77% 0.111 127.6)
XYZxyz(8.0066, 11.4582, 2.6003)
Luminance0.1146 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B6817 #341768
analogous
#685C17 #4B6817 #236817
triadic
#4B6817 #174B68 #68174B
tetradic
#4B6817 #17685C #341768 #681723
square
#4B6817 #17685C #341768 #681723
split-complementary
#4B6817 #172368 #5C1768
monochromatic
#121906 #27360C #4B6817 #6F9A22 #93CC2D

Accessibility & contrast

On white

6.38
#4B6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#4B6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B6817
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B6817#FFFFFF#000000##FFFFFF
##4B68171.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6007
Deuteranopia (green-blind)
#6A5F1F
Tritanopia (blue-blind)
#4E6358
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4b6817;
/* rgb */ color: rgb(75, 104, 23);
/* oklch */ color: oklch(47.8% 0.111 127.6);
Tailwind
colors: {
  custom: {
    50: '#80935b',
    500: '#4b6817',
    950: '#000000',
  },
}
SCSS
$custom: #4b6817;
$custom-light: #80935b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b6817",
  "rgb": {
    "r": 75,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 81.481,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.47769,
    "c": 0.1113,
    "h": 127.6
  },
  "luminance": 0.11458
}

Semantic roles & 50–950 ramp

primary
#4B6817
secondary
#603D9E
accent
#41E77C
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0A0D04
muted
#7C7E79

Preview Lab

Preview with #4B6817

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

Preview Lab → · Contrast checker → · Palette generator →

#4B6817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva