#2A3904#2A3904

#2A3904 is a dark, moderate yellow-green. Relative luminance 0.034; OKLCH L 32.0% C 0.076 H 124.9°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2A3904
RGBrgb(42, 57, 4)
HSLhsl(77, 87%, 12%)
HSVhsv(77, 93%, 22%)
CMYKcmyk(26.3%, 0%, 93%, 77.6%)
CIE-LABlab(21.68, -14.92, 28.11)
CIE-LCHlch(21.68, 31.82, 117.95°)
OKLaboklab(31.98% -0.0436 0.0625)
OKLCHoklch(31.98% 0.076 124.9)
XYZxyz(2.4399, 3.4272, 0.6478)
Luminance0.0343 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3904 #130439
analogous
#392E04 #2A3904 #103904
triadic
#2A3904 #042A39 #39042A
tetradic
#2A3904 #04392E #130439 #390410
square
#2A3904 #04392E #130439 #390410
split-complementary
#2A3904 #041039 #2E0439
monochromatic
#151D02 #151D02 #2A3904 #547208 #7EAB0C

Accessibility & contrast

On white

12.46
#2A3904 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A3904 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3904
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3904#FFFFFF#000000##FFFFFF
##2A39041.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3400
Deuteranopia (green-blind)
#3B3409
Tritanopia (blue-blind)
#2D362F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a3904;
/* rgb */ color: rgb(42, 57, 4);
/* oklch */ color: oklch(32.0% 0.076 124.9);
Tailwind
colors: {
  custom: {
    50: '#666f4a',
    500: '#2a3904',
    950: '#000000',
  },
}
SCSS
$custom: #2a3904;
$custom-light: #666f4a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3904",
  "rgb": {
    "r": 42,
    "g": 57,
    "b": 4
  },
  "hsl": {
    "h": 76.981,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.31978,
    "c": 0.07624,
    "h": 124.9
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#2A3904
secondary
#381E7B
accent
#2BFD66
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #2A3904

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

Preview Lab → · Contrast checker → · Palette generator →

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