#338123#338123

#338123 is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.5% C 0.150 H 140.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#338123
RGBrgb(51, 129, 35)
HSLhsl(110, 57%, 32%)
HSVhsv(110, 73%, 51%)
CMYKcmyk(60.5%, 0%, 72.9%, 49.4%)
CIE-LABlab(47.66, -42.19, 41.76)
CIE-LCHlch(47.66, 59.36, 135.29°)
OKLaboklab(53.48% -0.1155 0.095)
OKLCHoklch(53.48% 0.15 140.6)
XYZxyz(9.5184, 16.5248, 4.2778)
Luminance0.1653 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#338123 #712381
analogous
#628123 #338123 #238142
triadic
#338123 #233381 #812333
tetradic
#338123 #236281 #712381 #814223
square
#338123 #236281 #712381 #814223
split-complementary
#338123 #422381 #812362
monochromatic
#0D2109 #205116 #338123 #46B130 #65CF4F

Accessibility & contrast

On white

4.88
#338123 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#338123 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #338123
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##338123#FFFFFF#000000##FFFFFF
##3381231.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857514
Deuteranopia (green-blind)
#7B6F2C
Tritanopia (blue-blind)
#297D6E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #338123;
/* rgb */ color: rgb(51, 129, 35);
/* oklch */ color: oklch(53.5% 0.150 140.6);
Tailwind
colors: {
  custom: {
    50: '#74a664',
    500: '#338123',
    950: '#000000',
  },
}
SCSS
$custom: #338123;
$custom-light: #74a664;
$custom-dark: #000000;
JSON
{
  "hex": "#338123",
  "rgb": {
    "r": 51,
    "g": 129,
    "b": 35
  },
  "hsl": {
    "h": 109.787,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53477,
    "c": 0.1496,
    "h": 140.6
  },
  "luminance": 0.16526
}

Semantic roles & 50–950 ramp

primary
#338123
secondary
#A24DB3
accent
#47E1C6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F06
muted
#7B7F7A

Preview Lab

Preview with #338123

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

Preview Lab → · Contrast checker → · Palette generator →

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