#2A4515#2A4515

#2A4515 is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.7% C 0.081 H 133.8°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#2A4515
RGBrgb(42, 69, 21)
HSLhsl(94, 53%, 18%)
HSVhsv(94, 70%, 27%)
CMYKcmyk(39.1%, 0%, 69.6%, 72.9%)
CIE-LABlab(26.16, -19.99, 25.11)
CIE-LCHlch(26.16, 32.09, 128.52°)
OKLaboklab(35.67% -0.0557 0.0582)
OKLCHoklch(35.67% 0.081 133.8)
XYZxyz(3.2183, 4.8025, 1.4667)
Luminance0.0480 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4515 #301545
analogous
#424515 #2A4515 #154518
triadic
#2A4515 #152A45 #45152A
tetradic
#2A4515 #154245 #301545 #451815
square
#2A4515 #154245 #301545 #451815
split-complementary
#2A4515 #181545 #451542
monochromatic
#0E1707 #0E1707 #2A4515 #477423 #63A332

Accessibility & contrast

On white

10.71
#2A4515 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2A4515 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4515
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4515#FFFFFF#000000##FFFFFF
##2A45151.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F0F
Deuteranopia (green-blind)
#443D19
Tritanopia (blue-blind)
#2A423B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a4515;
/* rgb */ color: rgb(42, 69, 21);
/* oklch */ color: oklch(35.7% 0.081 133.8);
Tailwind
colors: {
  custom: {
    50: '#667955',
    500: '#2a4515',
    950: '#000000',
  },
}
SCSS
$custom: #2a4515;
$custom-light: #667955;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4515",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 21
  },
  "hsl": {
    "h": 93.75,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.35671,
    "c": 0.08054,
    "h": 133.8
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#2A4515
secondary
#5F397D
accent
#4BDD9D
background
#F6F7F5
surface
#EBEDE8
border
#C6C8C4
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4515

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

Preview Lab → · Contrast checker → · Palette generator →

#2A4515 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva