#0F5312#0F5312

#0F5312 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.7% C 0.117 H 143.4°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#0F5312
RGBrgb(15, 83, 18)
HSLhsl(123, 69%, 19%)
HSVhsv(123, 82%, 33%)
CMYKcmyk(81.9%, 0%, 78.3%, 67.5%)
CIE-LABlab(30.23, -34.55, 30.57)
CIE-LCHlch(30.23, 46.13, 138.49°)
OKLaboklab(38.72% -0.0936 0.0695)
OKLCHoklch(38.72% 0.117 143.4)
XYZxyz(3.3992, 6.3313, 1.6151)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5312 #530F50
analogous
#2E530F #0F5312 #0F5334
triadic
#0F5312 #120F53 #53120F
tetradic
#0F5312 #0F2E53 #530F50 #53340F
square
#0F5312 #0F2E53 #530F50 #53340F
split-complementary
#0F5312 #340F53 #530F2E
monochromatic
#051A06 #061F07 #0F5312 #18871D #22BB28

Accessibility & contrast

On white

9.27
#0F5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#0F5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5312
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5312#FFFFFF#000000##FFFFFF
##0F53121.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A07
Deuteranopia (green-blind)
#4D4519
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0f5312;
/* rgb */ color: rgb(15, 83, 18);
/* oklch */ color: oklch(38.7% 0.117 143.4);
Tailwind
colors: {
  custom: {
    50: '#5b8454',
    500: '#0f5312',
    950: '#000000',
  },
}
SCSS
$custom: #0f5312;
$custom-light: #5b8454;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5312",
  "rgb": {
    "r": 15,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 122.647,
    "s": 69.388,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38722,
    "c": 0.11661,
    "h": 143.4
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#0F5312
secondary
#8D3189
accent
#3CE4EC
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0F5312

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

Preview Lab → · Contrast checker → · Palette generator →

#0F5312 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva