#0F5123#0F5123

#0F5123 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.3% C 0.099 H 148.8°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#0F5123
RGBrgb(15, 81, 35)
HSLhsl(138, 69%, 19%)
HSVhsv(138, 81%, 32%)
CMYKcmyk(81.5%, 0%, 56.8%, 68.2%)
CIE-LABlab(29.68, -31.47, 21.26)
CIE-LCHlch(29.68, 37.98, 145.96°)
OKLaboklab(38.33% -0.0846 0.0513)
OKLCHoklch(38.33% 0.099 148.8)
XYZxyz(3.4425, 6.1074, 2.5872)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F5123 #510F3D
analogous
#1C510F #0F5123 #0F5144
triadic
#0F5123 #230F51 #51230F
tetradic
#0F5123 #0F1C51 #510F3D #51440F
square
#0F5123 #0F1C51 #510F3D #51440F
split-complementary
#0F5123 #440F51 #510F1C
monochromatic
#051A0B #051D0D #0F5123 #198539 #22B850

Accessibility & contrast

On white

9.45
#0F5123 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#0F5123 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F5123
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F5123#FFFFFF#000000##FFFFFF
##0F51231.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52491F
Deuteranopia (green-blind)
#4A4426
Tritanopia (blue-blind)
#004F46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0f5123;
/* rgb */ color: rgb(15, 81, 35);
/* oklch */ color: oklch(38.3% 0.099 148.8);
Tailwind
colors: {
  custom: {
    50: '#5a835f',
    500: '#0f5123',
    950: '#000000',
  },
}
SCSS
$custom: #0f5123;
$custom-light: #5a835f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f5123",
  "rgb": {
    "r": 15,
    "g": 81,
    "b": 35
  },
  "hsl": {
    "h": 138.182,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38326,
    "c": 0.09897,
    "h": 148.8
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#0F5123
secondary
#8B3170
accent
#3CB6EC
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0F5123

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

Preview Lab → · Contrast checker → · Palette generator →

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