#2B510F#2B510F

#2B510F is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.103 H 135.1°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2B510F
RGBrgb(43, 81, 15)
HSLhsl(95, 69%, 19%)
HSVhsv(95, 81%, 32%)
CMYKcmyk(46.9%, 0%, 81.5%, 68.2%)
CIE-LABlab(30.48, -26.06, 32.39)
CIE-LCHlch(30.48, 41.57, 128.82°)
OKLaboklab(39.2% -0.0728 0.0725)
OKLCHoklch(39.2% 0.103 135.1)
XYZxyz(4.0248, 6.4327, 1.4814)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B510F #350F51
analogous
#4C510F #2B510F #0F5114
triadic
#2B510F #0F2B51 #510F2B
tetradic
#2B510F #0F4C51 #350F51 #51140F
square
#2B510F #0F4C51 #350F51 #51140F
split-complementary
#2B510F #140F51 #510F4C
monochromatic
#0E1A05 #101D05 #2B510F #468519 #62B822

Accessibility & contrast

On white

9.18
#2B510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B510F
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B510F#FFFFFF#000000##FFFFFF
##2B510F1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b510f;
/* rgb */ color: rgb(43, 81, 15);
/* oklch */ color: oklch(39.2% 0.103 135.1);
Tailwind
colors: {
  custom: {
    50: '#688253',
    500: '#2b510f',
    950: '#000000',
  },
}
SCSS
$custom: #2b510f;
$custom-light: #688253;
$custom-dark: #000000;
JSON
{
  "hex": "#2b510f",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 94.545,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39197,
    "c": 0.10278,
    "h": 135.1
  },
  "luminance": 0.06433
}

Semantic roles & 50–950 ramp

primary
#2B510F
secondary
#65318B
accent
#3CECA1
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2B510F

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

Preview Lab → · Contrast checker → · Palette generator →

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