#2A400C#2A400C

#2A400C is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.1% C 0.081 H 129.9°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#2A400C
RGBrgb(42, 64, 12)
HSLhsl(85, 68%, 15%)
HSVhsv(85, 81%, 25%)
CMYKcmyk(34.4%, 0%, 81.2%, 74.9%)
CIE-LABlab(24.28, -18.18, 27.48)
CIE-LCHlch(24.28, 32.95, 123.49°)
OKLaboklab(34.11% -0.0516 0.0618)
OKLCHoklch(34.11% 0.081 129.9)
XYZxyz(2.8546, 4.1855, 1.0052)
Luminance0.0419 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A400C #220C40
analogous
#403C0C #2A400C #10400C
triadic
#2A400C #0C2A40 #400C2A
tetradic
#2A400C #0C403C #220C40 #400C10
square
#2A400C #0C403C #220C40 #400C10
split-complementary
#2A400C #0C1040 #3C0C40
monochromatic
#111A05 #111A05 #2A400C #4C7416 #6EA71F

Accessibility & contrast

On white

11.43
#2A400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A400C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A400C
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A400C#FFFFFF#000000##FFFFFF
##2A400C1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B04
Deuteranopia (green-blind)
#403911
Tritanopia (blue-blind)
#2B3D36
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a400c;
/* rgb */ color: rgb(42, 64, 12);
/* oklch */ color: oklch(34.1% 0.081 129.9);
Tailwind
colors: {
  custom: {
    50: '#66754f',
    500: '#2a400c',
    950: '#000000',
  },
}
SCSS
$custom: #2a400c;
$custom-light: #66754f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a400c",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 85.385,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34106,
    "c": 0.08051,
    "h": 129.9
  },
  "luminance": 0.04186
}

Semantic roles & 50–950 ramp

primary
#2A400C
secondary
#4E2C7C
accent
#3DEB86
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A400C

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

Preview Lab → · Contrast checker → · Palette generator →

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