#2A4107#2A4107

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

Color values

HEX#2A4107
RGBrgb(42, 65, 7)
HSLhsl(84, 81%, 14%)
HSVhsv(84, 89%, 25%)
CMYKcmyk(35.4%, 0%, 89.2%, 74.5%)
CIE-LABlab(24.60, -19.07, 29.88)
CIE-LCHlch(24.60, 35.44, 122.54°)
OKLaboklab(34.36% -0.0545 0.0659)
OKLCHoklch(34.36% 0.086 129.6)
XYZxyz(2.8835, 4.2881, 0.8767)
Luminance0.0429 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4107 #1E0741
analogous
#413B07 #2A4107 #0D4107
triadic
#2A4107 #072A41 #41072A
tetradic
#2A4107 #07413B #1E0741 #41070D
square
#2A4107 #07413B #1E0741 #41070D
split-complementary
#2A4107 #070D41 #3B0741
monochromatic
#121C03 #121C03 #2A4107 #4E780D #71B013

Accessibility & contrast

On white

11.30
#2A4107 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4107
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4107#FFFFFF#000000##FFFFFF
##2A41071.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4107;
/* rgb */ color: rgb(42, 65, 7);
/* oklch */ color: oklch(34.4% 0.086 129.6);
Tailwind
colors: {
  custom: {
    50: '#66754c',
    500: '#2a4107',
    950: '#000000',
  },
}
SCSS
$custom: #2a4107;
$custom-light: #66754c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4107",
  "rgb": {
    "r": 42,
    "g": 65,
    "b": 7
  },
  "hsl": {
    "h": 83.793,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.3436,
    "c": 0.08551,
    "h": 129.6
  },
  "luminance": 0.04288
}

Semantic roles & 50–950 ramp

primary
#2A4107
secondary
#482480
accent
#31F77F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2A4107

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

Preview Lab → · Contrast checker → · Palette generator →

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