#0F5128#0F5128

#0F5128 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.4% C 0.094 H 151.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#0F5128
RGBrgb(15, 81, 40)
HSLhsl(143, 69%, 19%)
HSVhsv(143, 81%, 32%)
CMYKcmyk(81.5%, 0%, 50.6%, 68.2%)
CIE-LABlab(29.76, -30.55, 18.45)
CIE-LCHlch(29.76, 35.69, 148.87°)
OKLaboklab(38.42% -0.0821 0.0452)
OKLCHoklch(38.42% 0.094 151.2)
XYZxyz(3.5221, 6.1392, 3.0064)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5128 #510F38
analogous
#17510F #0F5128 #0F5149
triadic
#0F5128 #280F51 #51280F
tetradic
#0F5128 #0F1751 #510F38 #51490F
square
#0F5128 #0F1751 #510F38 #51490F
split-complementary
#0F5128 #490F51 #510F17
monochromatic
#051A0D #051D0F #0F5128 #198542 #22B85B

Accessibility & contrast

On white

9.43
#0F5128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#0F5128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5128
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5128#FFFFFF#000000##FFFFFF
##0F51281.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514925
Deuteranopia (green-blind)
#4A442B
Tritanopia (blue-blind)
#005047
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0f5128;
/* rgb */ color: rgb(15, 81, 40);
/* oklch */ color: oklch(38.4% 0.094 151.2);
Tailwind
colors: {
  custom: {
    50: '#598262',
    500: '#0f5128',
    950: '#000000',
  },
}
SCSS
$custom: #0f5128;
$custom-light: #598262;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5128",
  "rgb": {
    "r": 15,
    "g": 81,
    "b": 40
  },
  "hsl": {
    "h": 142.727,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38418,
    "c": 0.09377,
    "h": 151.2
  },
  "luminance": 0.0614
}

Semantic roles & 50–950 ramp

primary
#0F5128
secondary
#8B3169
accent
#3CA9EC
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0F5128

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

Preview Lab → · Contrast checker → · Palette generator →

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