#397818#397818

#397818 is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.1% C 0.142 H 137.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#397818
RGBrgb(57, 120, 24)
HSLhsl(99, 67%, 28%)
HSVhsv(99, 80%, 47%)
CMYKcmyk(52.5%, 0%, 80%, 52.9%)
CIE-LABlab(44.76, -37.69, 43.12)
CIE-LCHlch(44.76, 57.27, 131.15°)
OKLaboklab(51.13% -0.1045 0.0962)
OKLCHoklch(51.13% 0.142 137.4)
XYZxyz(8.5684, 14.3681, 3.1858)
Luminance0.1437 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397818 #571878
analogous
#697818 #397818 #187827
triadic
#397818 #183978 #781839
tetradic
#397818 #186978 #571878 #782718
square
#397818 #186978 #571878 #782718
split-complementary
#397818 #271878 #781869
monochromatic
#0C1A05 #21450E #397818 #51AB22 #6CD634

Accessibility & contrast

On white

5.42
#397818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#397818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397818
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397818#FFFFFF#000000##FFFFFF
##3978181.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#357366
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #397818;
/* rgb */ color: rgb(57, 120, 24);
/* oklch */ color: oklch(51.1% 0.142 137.4);
Tailwind
colors: {
  custom: {
    50: '#769f5d',
    500: '#397818',
    950: '#000000',
  },
}
SCSS
$custom: #397818;
$custom-light: #769f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#397818",
  "rgb": {
    "r": 57,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 99.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51125,
    "c": 0.14203,
    "h": 137.4
  },
  "luminance": 0.14369
}

Semantic roles & 50–950 ramp

primary
#397818
secondary
#873FAD
accent
#3EEAAF
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #397818

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

Preview Lab → · Contrast checker → · Palette generator →

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