#398012#398012

#398012 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.3% C 0.155 H 137.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#398012
RGBrgb(57, 128, 18)
HSLhsl(99, 75%, 29%)
HSVhsv(99, 86%, 50%)
CMYKcmyk(55.5%, 0%, 85.9%, 49.8%)
CIE-LABlab(47.43, -41.25, 47.47)
CIE-LCHlch(47.43, 62.89, 130.99°)
OKLaboklab(53.32% -0.1144 0.1044)
OKLCHoklch(53.32% 0.155 137.6)
XYZxyz(9.5154, 16.3511, 3.2268)
Luminance0.1635 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398012 #591280
analogous
#708012 #398012 #128022
triadic
#398012 #123980 #801239
tetradic
#398012 #127080 #591280 #802212
square
#398012 #127080 #591280 #802212
split-complementary
#398012 #221280 #801270
monochromatic
#0C1B04 #214A0A #398012 #51B61A #6CE12B

Accessibility & contrast

On white

4.92
#398012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#398012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #398012
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398012#FFFFFF#000000##FFFFFF
##3980121.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#347B6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #398012;
/* rgb */ color: rgb(57, 128, 18);
/* oklch */ color: oklch(53.3% 0.155 137.6);
Tailwind
colors: {
  custom: {
    50: '#78a55c',
    500: '#398012',
    950: '#000000',
  },
}
SCSS
$custom: #398012;
$custom-light: #78a55c;
$custom-dark: #000000;
JSON
{
  "hex": "#398012",
  "rgb": {
    "r": 57,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 98.727,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5332,
    "c": 0.15487,
    "h": 137.6
  },
  "luminance": 0.16352
}

Semantic roles & 50–950 ramp

primary
#398012
secondary
#8938B6
accent
#36F2AF
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #398012

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

Preview Lab → · Contrast checker → · Palette generator →

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