#54B31C#54B31C

#54B31C is a light, vivid yellow-green. Relative luminance 0.342; OKLCH L 68.2% C 0.198 H 137.3°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#54B31C
RGBrgb(84, 179, 28)
HSLhsl(98, 73%, 41%)
HSVhsv(98, 84%, 70%)
CMYKcmyk(53.1%, 0%, 84.4%, 29.8%)
CIE-LABlab(65.13, -52.36, 61.12)
CIE-LCHlch(65.13, 80.48, 130.59°)
OKLaboklab(68.21% -0.1454 0.1341)
OKLCHoklch(68.21% 0.198 137.3)
XYZxyz(19.9852, 34.2073, 6.6479)
Luminance0.3421 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54B31C #7B1CB3
analogous
#A0B31C #54B31C #1CB32F
triadic
#54B31C #1C54B3 #B31C54
tetradic
#54B31C #1CA0B3 #7B1CB3 #B32F1C
square
#54B31C #1CA0B3 #7B1CB3 #B32F1C
split-complementary
#54B31C #2F1CB3 #B31CA0
monochromatic
#22490B #3B7E14 #54B31C #6FDE2E #94E763

Accessibility & contrast

On white

2.68
#54B31C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#54B31C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #54B31C
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54B31C#FFFFFF#000000##000000
##54B31C1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#AD9B30
Tritanopia (blue-blind)
#4DAC98
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #54b31c;
/* rgb */ color: rgb(84, 179, 28);
/* oklch */ color: oklch(68.2% 0.198 137.3);
Tailwind
colors: {
  custom: {
    50: '#8eca68',
    500: '#54b31c',
    950: '#000000',
  },
}
SCSS
$custom: #54b31c;
$custom-light: #8eca68;
$custom-dark: #000000;
JSON
{
  "hex": "#54b31c",
  "rgb": {
    "r": 84,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 97.748,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.68207,
    "c": 0.19784,
    "h": 137.3
  },
  "luminance": 0.34209
}

Semantic roles & 50–950 ramp

primary
#54B31C
secondary
#A35FCB
accent
#38F0AC
background
#F9FCF6
surface
#F2F8EB
border
#CCD1C6
text
#0D1307
muted
#7E827A

Preview Lab

Preview with #54B31C

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

Preview Lab → · Contrast checker → · Palette generator →

#54B31C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva