#4B7215#4B7215

#4B7215 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.4% C 0.126 H 130.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#4B7215
RGBrgb(75, 114, 21)
HSLhsl(85, 69%, 26%)
HSVhsv(85, 82%, 45%)
CMYKcmyk(34.2%, 0%, 81.6%, 55.3%)
CIE-LABlab(43.63, -28.68, 43.40)
CIE-LCHlch(43.63, 52.02, 123.45°)
OKLaboklab(50.44% -0.0817 0.0959)
OKLCHoklch(50.44% 0.126 130.4)
XYZxyz(9.0543, 13.5843, 2.8543)
Luminance0.1358 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7215 #3C1572
analogous
#726B15 #4B7215 #1D7215
triadic
#4B7215 #154B72 #72154B
tetradic
#4B7215 #15726B #3C1572 #72151D
square
#4B7215 #15726B #3C1572 #72151D
split-complementary
#4B7215 #151D72 #6B1572
monochromatic
#111A05 #293E0B #4B7215 #6DA61F #8FD82A

Accessibility & contrast

On white

5.65
#4B7215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#4B7215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7215
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7215#FFFFFF#000000##FFFFFF
##4B72151.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#72661F
Tritanopia (blue-blind)
#4D6D61
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #4b7215;
/* rgb */ color: rgb(75, 114, 21);
/* oklch */ color: oklch(50.4% 0.126 130.4);
Tailwind
colors: {
  custom: {
    50: '#819b5b',
    500: '#4b7215',
    950: '#000000',
  },
}
SCSS
$custom: #4b7215;
$custom-light: #819b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7215",
  "rgb": {
    "r": 75,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 85.161,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.50442,
    "c": 0.12598,
    "h": 130.4
  },
  "luminance": 0.13585
}

Semantic roles & 50–950 ramp

primary
#4B7215
secondary
#693BA8
accent
#3CEC86
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4B7215

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

Preview Lab → · Contrast checker → · Palette generator →

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