#2D6311#2D6311

#2D6311 is a dark, vivid yellow-green. Relative luminance 0.095; OKLCH L 44.6% C 0.125 H 137.5°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2D6311
RGBrgb(45, 99, 17)
HSLhsl(100, 71%, 23%)
HSVhsv(100, 83%, 39%)
CMYKcmyk(54.5%, 0%, 82.8%, 61.2%)
CIE-LABlab(36.97, -33.24, 37.94)
CIE-LCHlch(36.97, 50.44, 131.22°)
OKLaboklab(44.56% -0.0921 0.0844)
OKLCHoklch(44.56% 0.125 137.5)
XYZxyz(5.6450, 9.5216, 2.0706)
Luminance0.0952 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D6311 #471163
analogous
#566311 #2D6311 #11631E
triadic
#2D6311 #112D63 #63112D
tetradic
#2D6311 #115663 #471163 #631E11
square
#2D6311 #115663 #471163 #631E11
split-complementary
#2D6311 #1E1163 #631156
monochromatic
#0C1A04 #152F08 #2D6311 #45971A #5CCB23

Accessibility & contrast

On white

7.23
#2D6311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2D6311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D6311
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D6311#FFFFFF#000000##FFFFFF
##2D63111.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A00
Deuteranopia (green-blind)
#60551A
Tritanopia (blue-blind)
#295F54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d6311;
/* rgb */ color: rgb(45, 99, 17);
/* oklch */ color: oklch(44.6% 0.125 137.5);
Tailwind
colors: {
  custom: {
    50: '#6c9057',
    500: '#2d6311',
    950: '#000000',
  },
}
SCSS
$custom: #2d6311;
$custom-light: #6c9057;
$custom-dark: #000000;
JSON
{
  "hex": "#2d6311",
  "rgb": {
    "r": 45,
    "g": 99,
    "b": 17
  },
  "hsl": {
    "h": 99.512,
    "s": 70.69,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44561,
    "c": 0.12498,
    "h": 137.5
  },
  "luminance": 0.09522
}

Semantic roles & 50–950 ramp

primary
#2D6311
secondary
#78349B
accent
#3AEDB0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2D6311

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

Preview Lab → · Contrast checker → · Palette generator →

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