#295212#295212

#295212 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.4% C 0.103 H 136.6°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#295212
RGBrgb(41, 82, 18)
HSLhsl(98, 64%, 20%)
HSVhsv(98, 78%, 32%)
CMYKcmyk(50%, 0%, 78%, 67.8%)
CIE-LABlab(30.76, -27.04, 31.39)
CIE-LCHlch(30.76, 41.43, 130.74°)
OKLaboklab(39.41% -0.0751 0.071)
OKLCHoklch(39.41% 0.103 136.6)
XYZxyz(4.0408, 6.5494, 1.6234)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#295212 #3B1252
analogous
#495212 #295212 #12521B
triadic
#295212 #122952 #521229
tetradic
#295212 #124952 #3B1252 #521B12
square
#295212 #124952 #3B1252 #521B12
split-complementary
#295212 #1B1252 #521249
monochromatic
#0D1906 #102007 #295212 #42841D #5BB628

Accessibility & contrast

On white

9.09
#295212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#295212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #295212
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##295212#FFFFFF#000000##FFFFFF
##2952121.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B07
Deuteranopia (green-blind)
#504718
Tritanopia (blue-blind)
#274F45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #295212;
/* rgb */ color: rgb(41, 82, 18);
/* oklch */ color: oklch(39.4% 0.103 136.6);
Tailwind
colors: {
  custom: {
    50: '#678354',
    500: '#295212',
    950: '#000000',
  },
}
SCSS
$custom: #295212;
$custom-light: #678354;
$custom-dark: #000000;
JSON
{
  "hex": "#295212",
  "rgb": {
    "r": 41,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 98.438,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39406,
    "c": 0.1033,
    "h": 136.6
  },
  "luminance": 0.0655
}

Semantic roles & 50–950 ramp

primary
#295212
secondary
#6C358B
accent
#41E7AB
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #295212

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

Preview Lab → · Contrast checker → · Palette generator →

#295212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva