#4A6815#4A6815

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

Color values

HEX#4A6815
RGBrgb(74, 104, 21)
HSLhsl(82, 66%, 25%)
HSVhsv(82, 80%, 41%)
CMYKcmyk(28.8%, 0%, 79.8%, 59.2%)
CIE-LABlab(40.26, -24.22, 40.20)
CIE-LCHlch(40.26, 46.93, 121.07°)
OKLaboklab(47.68% -0.0695 0.0892)
OKLCHoklch(47.68% 0.113 127.9)
XYZxyz(7.9097, 11.4104, 2.4950)
Luminance0.1141 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A6815 #331568
analogous
#685D15 #4A6815 #206815
triadic
#4A6815 #154A68 #68154A
tetradic
#4A6815 #15685D #331568 #681520
square
#4A6815 #15685D #331568 #681520
split-complementary
#4A6815 #152068 #5D1568
monochromatic
#121905 #26350B #4A6815 #6E9B1F #92CE2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A6815#FFFFFF#000000##FFFFFF
##4A68151.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)
#6E6003
Deuteranopia (green-blind)
#695E1D
Tritanopia (blue-blind)
#4D6358
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4a6815;
/* rgb */ color: rgb(74, 104, 21);
/* oklch */ color: oklch(47.7% 0.113 127.9);
Tailwind
colors: {
  custom: {
    50: '#80935a',
    500: '#4a6815',
    950: '#000000',
  },
}
SCSS
$custom: #4a6815;
$custom-light: #80935a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a6815",
  "rgb": {
    "r": 74,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 81.687,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.47684,
    "c": 0.11311,
    "h": 127.9
  },
  "luminance": 0.11411
}

Semantic roles & 50–950 ramp

primary
#4A6815
secondary
#5E3A9F
accent
#3EE97C
background
#F8F9F5
surface
#EFF1E9
border
#CACBC5
text
#0A0D04
muted
#7C7E79

Preview Lab

Preview with #4A6815

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

Preview Lab → · Contrast checker → · Palette generator →

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