#30510C#30510C

#30510C is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.5% C 0.102 H 132.5°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#30510C
RGBrgb(48, 81, 12)
HSLhsl(89, 74%, 18%)
HSVhsv(89, 85%, 32%)
CMYKcmyk(40.7%, 0%, 85.2%, 68.2%)
CIE-LABlab(30.73, -24.29, 33.87)
CIE-LCHlch(30.73, 41.67, 125.65°)
OKLaboklab(39.48% -0.0686 0.075)
OKLCHoklch(39.48% 0.102 132.5)
XYZxyz(4.2277, 6.5396, 1.3873)
Luminance0.0654 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30510C #2D0C51
analogous
#514F0C #30510C #0D510C
triadic
#30510C #0C3051 #510C30
tetradic
#30510C #0C514F #2D0C51 #510C0D
square
#30510C #0C514F #2D0C51 #510C0D
split-complementary
#30510C #0C0D51 #4F0C51
monochromatic
#101B04 #101C04 #30510C #508614 #6FBC1C

Accessibility & contrast

On white

9.10
#30510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#30510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30510C
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30510C#FFFFFF#000000##FFFFFF
##30510C1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A00
Deuteranopia (green-blind)
#504713
Tritanopia (blue-blind)
#314D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #30510c;
/* rgb */ color: rgb(48, 81, 12);
/* oklch */ color: oklch(39.5% 0.102 132.5);
Tailwind
colors: {
  custom: {
    50: '#6c8251',
    500: '#30510c',
    950: '#000000',
  },
}
SCSS
$custom: #30510c;
$custom-light: #6c8251;
$custom-dark: #000000;
JSON
{
  "hex": "#30510c",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 88.696,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39475,
    "c": 0.10165,
    "h": 132.5
  },
  "luminance": 0.0654
}

Semantic roles & 50–950 ramp

primary
#30510C
secondary
#5A2C8C
accent
#37F190
background
#F6F7F4
surface
#ECEEE7
border
#C7C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #30510C

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

Preview Lab → · Contrast checker → · Palette generator →

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