#2A3807#2A3807

#2A3807 is a dark, moderate yellow-green. Relative luminance 0.033; OKLCH L 31.7% C 0.072 H 124.6°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2A3807
RGBrgb(42, 56, 7)
HSLhsl(77, 78%, 12%)
HSVhsv(77, 88%, 22%)
CMYKcmyk(25%, 0%, 87.5%, 78%)
CIE-LABlab(21.34, -14.12, 26.53)
CIE-LCHlch(21.34, 30.05, 118.02°)
OKLaboklab(31.71% -0.0411 0.0595)
OKLCHoklch(31.71% 0.072 124.6)
XYZxyz(2.4074, 3.3359, 0.7180)
Luminance0.0334 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3807 #150738
analogous
#382E07 #2A3807 #113807
triadic
#2A3807 #072A38 #38072A
tetradic
#2A3807 #07382E #150738 #380711
square
#2A3807 #07382E #150738 #380711
split-complementary
#2A3807 #071138 #2E0738
monochromatic
#141B03 #141B03 #2A3807 #536E0E #7CA515

Accessibility & contrast

On white

12.60
#2A3807 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2A3807 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3807
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3807#FFFFFF#000000##FFFFFF
##2A38071.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3401
Deuteranopia (green-blind)
#3A330B
Tritanopia (blue-blind)
#2C352F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a3807;
/* rgb */ color: rgb(42, 56, 7);
/* oklch */ color: oklch(31.7% 0.072 124.6);
Tailwind
colors: {
  custom: {
    50: '#656e4b',
    500: '#2a3807',
    950: '#000000',
  },
}
SCSS
$custom: #2a3807;
$custom-light: #656e4b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3807",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 7
  },
  "hsl": {
    "h": 77.143,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.31712,
    "c": 0.07227,
    "h": 124.6
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#2A3807
secondary
#3B2378
accent
#34F46B
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #2A3807

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

Preview Lab → · Contrast checker → · Palette generator →

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