#122D02#122D02

#122D02 is a dark, moderate yellow-green. Relative luminance 0.020; OKLCH L 26.5% C 0.076 H 136.1°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#122D02
RGBrgb(18, 45, 2)
HSLhsl(98, 91%, 9%)
HSVhsv(98, 96%, 18%)
CMYKcmyk(60%, 0%, 95.6%, 82.4%)
CIE-LABlab(15.54, -19.55, 21.32)
CIE-LCHlch(15.54, 28.93, 132.52°)
OKLaboklab(26.54% -0.0546 0.0525)
OKLCHoklch(26.54% 0.076 136.1)
XYZxyz(1.1988, 2.0097, 0.3822)
Luminance0.0201 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122D02 #1D022D
analogous
#282D02 #122D02 #022D08
triadic
#122D02 #02122D #2D0212
tetradic
#122D02 #02282D #1D022D #2D0802
square
#122D02 #02282D #1D022D #2D0802
split-complementary
#122D02 #08022D #2D0228
monochromatic
#0C1D01 #0C1D01 #122D02 #296805 #41A207

Accessibility & contrast

On white

14.98
#122D02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#122D02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122D02
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122D02#FFFFFF#000000##FFFFFF
##122D021.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2800
Deuteranopia (green-blind)
#2B2605
Tritanopia (blue-blind)
#112B25
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #122d02;
/* rgb */ color: rgb(18, 45, 2);
/* oklch */ color: oklch(26.5% 0.076 136.1);
Tailwind
colors: {
  custom: {
    50: '#526647',
    500: '#122d02',
    950: '#000000',
  },
}
SCSS
$custom: #122d02;
$custom-light: #526647;
$custom-dark: #000000;
JSON
{
  "hex": "#122d02",
  "rgb": {
    "r": 18,
    "g": 45,
    "b": 2
  },
  "hsl": {
    "h": 97.674,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.2654,
    "c": 0.0757,
    "h": 136.1
  },
  "luminance": 0.0201
}

Semantic roles & 50–950 ramp

primary
#122D02
secondary
#511972
accent
#29FFAF
background
#F4F6F4
surface
#E7EBE6
border
#C3C6C2
text
#020600
muted
#787A77

Preview Lab

Preview with #122D02

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

Preview Lab → · Contrast checker → · Palette generator →

#122D02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva