#398112#398112

#398112 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.6% C 0.156 H 137.7°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#398112
RGBrgb(57, 129, 18)
HSLhsl(99, 76%, 29%)
HSVhsv(99, 86%, 51%)
CMYKcmyk(55.8%, 0%, 86%, 49.4%)
CIE-LABlab(47.77, -41.64, 47.78)
CIE-LCHlch(47.77, 63.38, 131.07°)
OKLaboklab(53.6% -0.1155 0.105)
OKLCHoklch(53.6% 0.156 137.7)
XYZxyz(9.6464, 16.6133, 3.2705)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398112 #5A1281
analogous
#718112 #398112 #128123
triadic
#398112 #123981 #811239
tetradic
#398112 #127181 #5A1281 #812312
square
#398112 #127181 #5A1281 #812312
split-complementary
#398112 #231281 #811271
monochromatic
#0C1B04 #214B0B #398112 #51B719 #6CE22C

Accessibility & contrast

On white

4.86
#398112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#398112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #398112
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##398112#FFFFFF#000000##FFFFFF
##3981121.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7C6F20
Tritanopia (blue-blind)
#337C6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #398112;
/* rgb */ color: rgb(57, 129, 18);
/* oklch */ color: oklch(53.6% 0.156 137.7);
Tailwind
colors: {
  custom: {
    50: '#78a65c',
    500: '#398112',
    950: '#000000',
  },
}
SCSS
$custom: #398112;
$custom-light: #78a65c;
$custom-dark: #000000;
JSON
{
  "hex": "#398112",
  "rgb": {
    "r": 57,
    "g": 129,
    "b": 18
  },
  "hsl": {
    "h": 98.919,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53598,
    "c": 0.15608,
    "h": 137.7
  },
  "luminance": 0.16614
}

Semantic roles & 50–950 ramp

primary
#398112
secondary
#8A38B7
accent
#36F2B0
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #398112

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

Preview Lab → · Contrast checker → · Palette generator →

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