#2A3E12#2A3E12

#2A3E12 is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.6% C 0.072 H 130.2°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2A3E12
RGBrgb(42, 62, 18)
HSLhsl(87, 55%, 16%)
HSVhsv(87, 71%, 24%)
CMYKcmyk(32.3%, 0%, 71%, 75.7%)
CIE-LABlab(23.61, -16.55, 23.86)
CIE-LCHlch(23.61, 29.04, 124.75°)
OKLaboklab(33.58% -0.0466 0.0551)
OKLCHoklch(33.58% 0.072 130.2)
XYZxyz(2.7866, 3.9811, 1.1938)
Luminance0.0398 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E12 #26123E
analogous
#3E3C12 #2A3E12 #143E12
triadic
#2A3E12 #122A3E #3E122A
tetradic
#2A3E12 #123E3C #26123E #3E1214
square
#2A3E12 #123E3C #26123E #3E1214
split-complementary
#2A3E12 #12143E #3C123E
monochromatic
#101807 #101807 #2A3E12 #4A6D20 #6A9D2E

Accessibility & contrast

On white

11.69
#2A3E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A3E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E12
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E12#FFFFFF#000000##FFFFFF
##2A3E121.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41390D
Deuteranopia (green-blind)
#3E3815
Tritanopia (blue-blind)
#2B3B35
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a3e12;
/* rgb */ color: rgb(42, 62, 18);
/* oklch */ color: oklch(33.6% 0.072 130.2);
Tailwind
colors: {
  custom: {
    50: '#657352',
    500: '#2a3e12',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e12;
$custom-light: #657352;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e12",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 18
  },
  "hsl": {
    "h": 87.273,
    "s": 55,
    "l": 15.686
  },
  "oklch": {
    "l": 0.33582,
    "c": 0.07215,
    "h": 130.2
  },
  "luminance": 0.03981
}

Semantic roles & 50–950 ramp

primary
#2A3E12
secondary
#533577
accent
#49DE8D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A3E12

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

Preview Lab → · Contrast checker → · Palette generator →

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