#398312#398312

#398312 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.2% C 0.158 H 137.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#398312
RGBrgb(57, 131, 18)
HSLhsl(99, 76%, 29%)
HSVhsv(99, 86%, 51%)
CMYKcmyk(56.5%, 0%, 86.3%, 48.6%)
CIE-LABlab(48.44, -42.42, 48.38)
CIE-LCHlch(48.44, 64.34, 131.24°)
OKLaboklab(54.15% -0.1175 0.1063)
OKLCHoklch(54.15% 0.158 137.9)
XYZxyz(9.9125, 17.1453, 3.3592)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398312 #5C1283
analogous
#728312 #398312 #128324
triadic
#398312 #123983 #831239
tetradic
#398312 #127283 #5C1283 #832412
square
#398312 #127283 #5C1283 #832412
split-complementary
#398312 #241283 #831272
monochromatic
#0C1B04 #224D0B #398312 #50B919 #6CE22D

Accessibility & contrast

On white

4.74
#398312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#398312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #398312
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398312#FFFFFF#000000##FFFFFF
##3983121.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#7E7121
Tritanopia (blue-blind)
#337E6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #398312;
/* rgb */ color: rgb(57, 131, 18);
/* oklch */ color: oklch(54.2% 0.158 137.9);
Tailwind
colors: {
  custom: {
    50: '#79a85c',
    500: '#398312',
    950: '#000000',
  },
}
SCSS
$custom: #398312;
$custom-light: #79a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#398312",
  "rgb": {
    "r": 57,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 99.292,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54154,
    "c": 0.15848,
    "h": 137.9
  },
  "luminance": 0.17146
}

Semantic roles & 50–950 ramp

primary
#398312
secondary
#8C38B8
accent
#35F2B1
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #398312

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

Preview Lab → · Contrast checker → · Palette generator →

#398312 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva