#2A400F#2A400F

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

Color values

HEX#2A400F
RGBrgb(42, 64, 15)
HSLhsl(87, 62%, 15%)
HSVhsv(87, 77%, 25%)
CMYKcmyk(34.4%, 0%, 76.6%, 74.9%)
CIE-LABlab(24.30, -17.93, 26.12)
CIE-LCHlch(24.30, 31.68, 124.47°)
OKLaboklab(34.13% -0.0507 0.0594)
OKLCHoklch(34.13% 0.078 130.5)
XYZxyz(2.8744, 4.1934, 1.1098)
Luminance0.0419 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A400F #250F40
analogous
#403D0F #2A400F #11400F
triadic
#2A400F #0F2A40 #400F2A
tetradic
#2A400F #0F403D #250F40 #400F11
square
#2A400F #0F403D #250F40 #400F11
split-complementary
#2A400F #0F1140 #3D0F40
monochromatic
#101906 #101906 #2A400F #4B721B #6BA326

Accessibility & contrast

On white

11.42
#2A400F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A400F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A400F#FFFFFF#000000##FFFFFF
##2A400F1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a400f;
/* rgb */ color: rgb(42, 64, 15);
/* oklch */ color: oklch(34.1% 0.078 130.5);
Tailwind
colors: {
  custom: {
    50: '#667550',
    500: '#2a400f',
    950: '#000000',
  },
}
SCSS
$custom: #2a400f;
$custom-light: #667550;
$custom-dark: #000000;
JSON
{
  "hex": "#2a400f",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 15
  },
  "hsl": {
    "h": 86.939,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.34134,
    "c": 0.07808,
    "h": 130.5
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#2A400F
secondary
#52307A
accent
#43E58C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #2A400F

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

Preview Lab → · Contrast checker → · Palette generator →

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