#1B5F12#1B5F12

#1B5F12 is a dark, vivid green. Relative luminance 0.085; OKLCH L 42.7% C 0.128 H 141.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#1B5F12
RGBrgb(27, 95, 18)
HSLhsl(113, 68%, 22%)
HSVhsv(113, 81%, 37%)
CMYKcmyk(71.6%, 0%, 81.1%, 62.7%)
CIE-LABlab(34.92, -36.59, 35.38)
CIE-LCHlch(34.92, 50.90, 135.96°)
OKLaboklab(42.7% -0.0999 0.0795)
OKLCHoklch(42.7% 0.128 141.5)
XYZxyz(4.6531, 8.4606, 1.9600)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B5F12 #56125F
analogous
#425F12 #1B5F12 #125F30
triadic
#1B5F12 #121B5F #5F121B
tetradic
#1B5F12 #12425F #56125F #5F3012
square
#1B5F12 #12425F #56125F #5F3012
split-complementary
#1B5F12 #30125F #5F1242
monochromatic
#071A05 #0C2C08 #1B5F12 #2A921C #38C625

Accessibility & contrast

On white

7.80
#1B5F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#1B5F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B5F12
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B5F12#FFFFFF#000000##FFFFFF
##1B5F121.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625503
Deuteranopia (green-blind)
#5A501B
Tritanopia (blue-blind)
#0D5C50
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1b5f12;
/* rgb */ color: rgb(27, 95, 18);
/* oklch */ color: oklch(42.7% 0.128 141.5);
Tailwind
colors: {
  custom: {
    50: '#638d56',
    500: '#1b5f12',
    950: '#000000',
  },
}
SCSS
$custom: #1b5f12;
$custom-light: #638d56;
$custom-dark: #000000;
JSON
{
  "hex": "#1b5f12",
  "rgb": {
    "r": 27,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 112.987,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42697,
    "c": 0.12763,
    "h": 141.5
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#1B5F12
secondary
#8C3697
accent
#3DEBD7
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #1B5F12

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

Preview Lab → · Contrast checker → · Palette generator →

#1B5F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva