#2C510F#2C510F

#2C510F is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.3% C 0.102 H 134.7°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#2C510F
RGBrgb(44, 81, 15)
HSLhsl(94, 69%, 19%)
HSVhsv(94, 81%, 32%)
CMYKcmyk(45.7%, 0%, 81.5%, 68.2%)
CIE-LABlab(30.53, -25.68, 32.46)
CIE-LCHlch(30.53, 41.39, 128.35°)
OKLaboklab(39.25% -0.0719 0.0727)
OKLCHoklch(39.25% 0.102 134.7)
XYZxyz(4.0673, 6.4546, 1.4834)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C510F #340F51
analogous
#4D510F #2C510F #0F5113
triadic
#2C510F #0F2C51 #510F2C
tetradic
#2C510F #0F4D51 #340F51 #51130F
square
#2C510F #0F4D51 #340F51 #51130F
split-complementary
#2C510F #130F51 #510F4D
monochromatic
#0E1A05 #101D05 #2C510F #488519 #64B822

Accessibility & contrast

On white

9.17
#2C510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2C510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C510F
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C510F#FFFFFF#000000##FFFFFF
##2C510F1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A03
Deuteranopia (green-blind)
#4F4716
Tritanopia (blue-blind)
#2B4E44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2c510f;
/* rgb */ color: rgb(44, 81, 15);
/* oklch */ color: oklch(39.3% 0.102 134.7);
Tailwind
colors: {
  custom: {
    50: '#698253',
    500: '#2c510f',
    950: '#000000',
  },
}
SCSS
$custom: #2c510f;
$custom-light: #698253;
$custom-dark: #000000;
JSON
{
  "hex": "#2c510f",
  "rgb": {
    "r": 44,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 93.636,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39254,
    "c": 0.10219,
    "h": 134.7
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#2C510F
secondary
#63318B
accent
#3CEC9F
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2C510F

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

Preview Lab → · Contrast checker → · Palette generator →

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