#2A4105#2A4105

#2A4105 is a dark, moderate yellow-green. Relative luminance 0.043; OKLCH L 34.3% C 0.087 H 129.3°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2A4105
RGBrgb(42, 65, 5)
HSLhsl(83, 86%, 14%)
HSVhsv(83, 92%, 25%)
CMYKcmyk(35.4%, 0%, 92.3%, 74.5%)
CIE-LABlab(24.59, -19.20, 30.68)
CIE-LCHlch(24.59, 36.19, 122.05°)
OKLaboklab(34.34% -0.0551 0.0672)
OKLCHoklch(34.34% 0.087 129.3)
XYZxyz(2.8725, 4.2837, 0.8190)
Luminance0.0428 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4105 #1C0541
analogous
#413A05 #2A4105 #0C4105
triadic
#2A4105 #052A41 #41052A
tetradic
#2A4105 #05413A #1C0541 #41050C
square
#2A4105 #05413A #1C0541 #41050C
split-complementary
#2A4105 #050C41 #3A0541
monochromatic
#121C02 #121C02 #2A4105 #4F7A09 #73B30E

Accessibility & contrast

On white

11.31
#2A4105 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A4105 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4105
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4105#FFFFFF#000000##FFFFFF
##2A41051.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453B00
Deuteranopia (green-blind)
#413A0B
Tritanopia (blue-blind)
#2C3E36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a4105;
/* rgb */ color: rgb(42, 65, 5);
/* oklch */ color: oklch(34.3% 0.087 129.3);
Tailwind
colors: {
  custom: {
    50: '#66754b',
    500: '#2a4105',
    950: '#000000',
  },
}
SCSS
$custom: #2a4105;
$custom-light: #66754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4105",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 5
  },
  "hsl": {
    "h": 83,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.34344,
    "c": 0.08692,
    "h": 129.3
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#2A4105
secondary
#462081
accent
#2CFC7C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4105

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

Preview Lab → · Contrast checker → · Palette generator →

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