#51841C#51841C

#51841C is a mid, vivid yellow-green. Relative luminance 0.183; OKLCH L 55.7% C 0.142 H 132.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#51841C
RGBrgb(81, 132, 28)
HSLhsl(89, 65%, 31%)
HSVhsv(89, 79%, 52%)
CMYKcmyk(38.6%, 0%, 78.8%, 48.2%)
CIE-LABlab(49.90, -34.24, 47.06)
CIE-LCHlch(49.90, 58.20, 126.04°)
OKLaboklab(55.66% -0.0966 0.1046)
OKLCHoklch(55.66% 0.142 132.7)
XYZxyz(11.8540, 18.3352, 4.0128)
Luminance0.1834 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51841C #4F1C84
analogous
#84831C #51841C #1D841C
triadic
#51841C #1C5184 #841C51
tetradic
#51841C #1C8483 #4F1C84 #841C1D
square
#51841C #1C8483 #4F1C84 #841C1D
split-complementary
#51841C #1C1D84 #831C84
monochromatic
#131F07 #325211 #51841C #70B627 #8FD743

Accessibility & contrast

On white

4.50
#51841C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#51841C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #51841C
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51841C#FFFFFF#000000##000000
##51841C1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7903
Deuteranopia (green-blind)
#837527
Tritanopia (blue-blind)
#527E70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #51841c;
/* rgb */ color: rgb(81, 132, 28);
/* oklch */ color: oklch(55.7% 0.142 132.7);
Tailwind
colors: {
  custom: {
    50: '#87a861',
    500: '#51841c',
    950: '#000000',
  },
}
SCSS
$custom: #51841c;
$custom-light: #87a861;
$custom-dark: #000000;
JSON
{
  "hex": "#51841c",
  "rgb": {
    "r": 81,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 89.423,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55662,
    "c": 0.1424,
    "h": 132.7
  },
  "luminance": 0.18336
}

Semantic roles & 50–950 ramp

primary
#51841C
secondary
#7D45B7
accent
#40E892
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #51841C

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

Preview Lab → · Contrast checker → · Palette generator →

#51841C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva