#398310#398310

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

Color values

HEX#398310
RGBrgb(57, 131, 16)
HSLhsl(99, 78%, 29%)
HSVhsv(99, 88%, 51%)
CMYKcmyk(56.5%, 0%, 87.8%, 48.6%)
CIE-LABlab(48.43, -42.51, 48.88)
CIE-LCHlch(48.43, 64.78, 131.01°)
OKLaboklab(54.15% -0.1179 0.1071)
OKLCHoklch(54.15% 0.159 137.8)
XYZxyz(9.8968, 17.1391, 3.2768)
Luminance0.1714 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#398310 #5A1083
analogous
#738310 #398310 #108321
triadic
#398310 #103983 #831039
tetradic
#398310 #107383 #5A1083 #832110
square
#398310 #107383 #5A1083 #832110
split-complementary
#398310 #211083 #831073
monochromatic
#0C1B03 #214C09 #398310 #51BA17 #6CE529

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##398310#FFFFFF#000000##FFFFFF
##3983101.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)
#7E7120
Tritanopia (blue-blind)
#337E6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #398310;
/* rgb */ color: rgb(57, 131, 16);
/* oklch */ color: oklch(54.1% 0.159 137.8);
Tailwind
colors: {
  custom: {
    50: '#79a85c',
    500: '#398310',
    950: '#000000',
  },
}
SCSS
$custom: #398310;
$custom-light: #79a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#398310",
  "rgb": {
    "r": 57,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 98.609,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54145,
    "c": 0.15925,
    "h": 137.8
  },
  "luminance": 0.1714
}

Semantic roles & 50–950 ramp

primary
#398310
secondary
#8A36B9
accent
#33F5B0
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A1004
muted
#7C7F79

Preview Lab

Preview with #398310

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

Preview Lab → · Contrast checker → · Palette generator →

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