#2A3D12#2A3D12

#2A3D12 is a dark, moderate yellow-green. Relative luminance 0.039; OKLCH L 33.3% C 0.071 H 129.7°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2A3D12
RGBrgb(42, 61, 18)
HSLhsl(87, 54%, 15%)
HSVhsv(87, 70%, 24%)
CMYKcmyk(31.1%, 0%, 70.5%, 76.1%)
CIE-LABlab(23.25, -16.00, 23.46)
CIE-LCHlch(23.25, 28.40, 124.28°)
OKLaboklab(33.29% -0.0451 0.0543)
OKLCHoklch(33.29% 0.071 129.7)
XYZxyz(2.7328, 3.8733, 1.1758)
Luminance0.0387 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3D12 #25123D
analogous
#3D3A12 #2A3D12 #143D12
triadic
#2A3D12 #122A3D #3D122A
tetradic
#2A3D12 #123D3A #25123D #3D1214
square
#2A3D12 #123D3A #25123D #3D1214
split-complementary
#2A3D12 #12143D #3A123D
monochromatic
#101807 #101807 #2A3D12 #4B6C20 #6B9C2E

Accessibility & contrast

On white

11.83
#2A3D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2A3D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3D12
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3D12#FFFFFF#000000##FFFFFF
##2A3D121.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40380D
Deuteranopia (green-blind)
#3D3715
Tritanopia (blue-blind)
#2B3A34
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a3d12;
/* rgb */ color: rgb(42, 61, 18);
/* oklch */ color: oklch(33.3% 0.071 129.7);
Tailwind
colors: {
  custom: {
    50: '#657252',
    500: '#2a3d12',
    950: '#000000',
  },
}
SCSS
$custom: #2a3d12;
$custom-light: #657252;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3d12",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 18
  },
  "hsl": {
    "h": 86.512,
    "s": 54.43,
    "l": 15.49
  },
  "oklch": {
    "l": 0.33289,
    "c": 0.07053,
    "h": 129.7
  },
  "luminance": 0.03873
}

Semantic roles & 50–950 ramp

primary
#2A3D12
secondary
#523576
accent
#4ADE8B
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A3D12

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

Preview Lab → · Contrast checker → · Palette generator →

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