#4A6817#4A6817

#4A6817 is a mid, moderate yellow-green. Relative luminance 0.114; OKLCH L 47.7% C 0.112 H 128.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#4A6817
RGBrgb(74, 104, 23)
HSLhsl(82, 64%, 25%)
HSVhsv(82, 78%, 41%)
CMYKcmyk(28.8%, 0%, 77.9%, 59.2%)
CIE-LABlab(40.28, -24.10, 39.46)
CIE-LCHlch(40.28, 46.24, 121.41°)
OKLaboklab(47.7% -0.069 0.088)
OKLCHoklch(47.7% 0.112 128.1)
XYZxyz(7.9290, 11.4182, 2.5966)
Luminance0.1142 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A6817 #351768
analogous
#685E17 #4A6817 #226817
triadic
#4A6817 #174A68 #68174A
tetradic
#4A6817 #17685E #351768 #681722
square
#4A6817 #17685E #351768 #681722
split-complementary
#4A6817 #172268 #5E1768
monochromatic
#121906 #26360C #4A6817 #6E9A22 #91CC2D

Accessibility & contrast

On white

6.40
#4A6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#4A6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A6817
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A6817#FFFFFF#000000##FFFFFF
##4A68171.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6007
Deuteranopia (green-blind)
#695E1F
Tritanopia (blue-blind)
#4D6358
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4a6817;
/* rgb */ color: rgb(74, 104, 23);
/* oklch */ color: oklch(47.7% 0.112 128.1);
Tailwind
colors: {
  custom: {
    50: '#80935b',
    500: '#4a6817',
    950: '#000000',
  },
}
SCSS
$custom: #4a6817;
$custom-light: #80935b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a6817",
  "rgb": {
    "r": 74,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 82.222,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.47698,
    "c": 0.11185,
    "h": 128.1
  },
  "luminance": 0.11418
}

Semantic roles & 50–950 ramp

primary
#4A6817
secondary
#613D9E
accent
#41E77E
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0A0D04
muted
#7C7E79

Preview Lab

Preview with #4A6817

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

Preview Lab → · Contrast checker → · Palette generator →

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