#2A3012#2A3012

#2A3012 is a dark, muted yellow-green. Relative luminance 0.026; OKLCH L 29.5% C 0.049 H 118.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#2A3012
RGBrgb(42, 48, 18)
HSLhsl(72, 45%, 13%)
HSVhsv(72, 63%, 19%)
CMYKcmyk(12.5%, 0%, 62.5%, 81.2%)
CIE-LABlab(18.58, -8.30, 18.14)
CIE-LCHlch(18.58, 19.95, 114.58°)
OKLaboklab(29.53% -0.0236 0.0428)
OKLCHoklch(29.53% 0.049 118.9)
XYZxyz(2.1210, 2.6498, 0.9719)
Luminance0.0265 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3012 #181230
analogous
#302712 #2A3012 #1B3012
triadic
#2A3012 #122A30 #30122A
tetradic
#2A3012 #123027 #181230 #30121B
square
#2A3012 #123027 #181230 #30121B
split-complementary
#2A3012 #121B30 #271230
monochromatic
#131608 #131608 #2A3012 #515D23 #788933

Accessibility & contrast

On white

13.73
#2A3012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A3012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3012
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3012#FFFFFF#000000##FFFFFF
##2A30121.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332D0F
Deuteranopia (green-blind)
#332D14
Tritanopia (blue-blind)
#2D2D29
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a3012;
/* rgb */ color: rgb(42, 48, 18);
/* oklch */ color: oklch(29.5% 0.049 118.9);
Tailwind
colors: {
  custom: {
    50: '#646850',
    500: '#2a3012',
    950: '#000000',
  },
}
SCSS
$custom: #2a3012;
$custom-light: #646850;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3012",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 18
  },
  "hsl": {
    "h": 72,
    "s": 45.455,
    "l": 12.941
  },
  "oklch": {
    "l": 0.29525,
    "c": 0.04891,
    "h": 118.9
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#2A3012
secondary
#403668
accent
#53D56D
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#050602
muted
#7A7A78

Preview Lab

Preview with #2A3012

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

Preview Lab → · Contrast checker → · Palette generator →

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