#2A510E#2A510E

#2A510E is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.1% C 0.104 H 135.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2A510E
RGBrgb(42, 81, 14)
HSLhsl(95, 71%, 19%)
HSVhsv(95, 83%, 32%)
CMYKcmyk(48.1%, 0%, 82.7%, 68.2%)
CIE-LABlab(30.42, -26.51, 32.71)
CIE-LCHlch(30.42, 42.11, 129.03°)
OKLaboklab(39.13% -0.074 0.073)
OKLCHoklch(39.13% 0.104 135.4)
XYZxyz(3.9764, 6.4086, 1.4428)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A510E #350E51
analogous
#4B510E #2A510E #0E5113
triadic
#2A510E #0E2A51 #510E2A
tetradic
#2A510E #0E4B51 #350E51 #51130E
square
#2A510E #0E4B51 #350E51 #51130E
split-complementary
#2A510E #130E51 #510E4B
monochromatic
#0E1A05 #0F1D05 #2A510E #458517 #60B920

Accessibility & contrast

On white

9.20
#2A510E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A510E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A510E
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A510E#FFFFFF#000000##FFFFFF
##2A510E1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A02
Deuteranopia (green-blind)
#4F4615
Tritanopia (blue-blind)
#294E44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2a510e;
/* rgb */ color: rgb(42, 81, 14);
/* oklch */ color: oklch(39.1% 0.104 135.4);
Tailwind
colors: {
  custom: {
    50: '#688252',
    500: '#2a510e',
    950: '#000000',
  },
}
SCSS
$custom: #2a510e;
$custom-light: #688252;
$custom-dark: #000000;
JSON
{
  "hex": "#2a510e",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 14
  },
  "hsl": {
    "h": 94.925,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39133,
    "c": 0.104,
    "h": 135.4
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

primary
#2A510E
secondary
#652F8C
accent
#3AEDA3
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A510E

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

Preview Lab → · Contrast checker → · Palette generator →

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