#2A4106#2A4106

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

Color values

HEX#2A4106
RGBrgb(42, 65, 6)
HSLhsl(83, 83%, 14%)
HSVhsv(83, 91%, 25%)
CMYKcmyk(35.4%, 0%, 90.8%, 74.5%)
CIE-LABlab(24.59, -19.14, 30.28)
CIE-LCHlch(24.59, 35.82, 122.29°)
OKLaboklab(34.35% -0.0548 0.0666)
OKLCHoklch(34.35% 0.086 129.5)
XYZxyz(2.8780, 4.2859, 0.8479)
Luminance0.0429 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4106 #1D0641
analogous
#413B06 #2A4106 #0D4106
triadic
#2A4106 #062A41 #41062A
tetradic
#2A4106 #06413B #1D0641 #41060D
square
#2A4106 #06413B #1D0641 #41060D
split-complementary
#2A4106 #060D41 #3B0641
monochromatic
#121C03 #121C03 #2A4106 #4E790B #72B110

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A4106#FFFFFF#000000##FFFFFF
##2A41061.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)
#413A0C
Tritanopia (blue-blind)
#2C3E36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a4106;
/* rgb */ color: rgb(42, 65, 6);
/* oklch */ color: oklch(34.4% 0.086 129.5);
Tailwind
colors: {
  custom: {
    50: '#66754c',
    500: '#2a4106',
    950: '#000000',
  },
}
SCSS
$custom: #2a4106;
$custom-light: #66754c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4106",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 6
  },
  "hsl": {
    "h": 83.39,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.34352,
    "c": 0.08621,
    "h": 129.5
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#2A4106
secondary
#472281
accent
#2EF97E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4106

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

Preview Lab → · Contrast checker → · Palette generator →

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