#4B5F0C#4B5F0C

#4B5F0C is a mid, moderate yellow-green. Relative luminance 0.097; OKLCH L 45.3% C 0.105 H 123.2°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#4B5F0C
RGBrgb(75, 95, 12)
HSLhsl(74, 78%, 21%)
HSVhsv(74, 87%, 37%)
CMYKcmyk(21.1%, 0%, 87.4%, 62.7%)
CIE-LABlab(37.31, -19.61, 40.50)
CIE-LCHlch(37.31, 45.00, 115.83°)
OKLaboklab(45.29% -0.0577 0.0882)
OKLCHoklch(45.29% 0.105 123.2)
XYZxyz(7.0603, 9.7068, 1.8494)
Luminance0.0971 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B5F0C #200C5F
analogous
#5F490C #4B5F0C #215F0C
triadic
#4B5F0C #0C4B5F #5F0C4B
tetradic
#4B5F0C #0C5F49 #200C5F #5F0C21
square
#4B5F0C #0C5F49 #200C5F #5F0C21
split-complementary
#4B5F0C #0C215F #490C5F
monochromatic
#151B03 #202905 #4B5F0C #769513 #A1CC1A

Accessibility & contrast

On white

7.14
#4B5F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4B5F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B5F0C
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B5F0C#FFFFFF#000000##FFFFFF
##4B5F0C1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655800
Deuteranopia (green-blind)
#635815
Tritanopia (blue-blind)
#4F5A50
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4b5f0c;
/* rgb */ color: rgb(75, 95, 12);
/* oklch */ color: oklch(45.3% 0.105 123.2);
Tailwind
colors: {
  custom: {
    50: '#808c54',
    500: '#4b5f0c',
    950: '#000000',
  },
}
SCSS
$custom: #4b5f0c;
$custom-light: #808c54;
$custom-dark: #000000;
JSON
{
  "hex": "#4b5f0c",
  "rgb": {
    "r": 75,
    "g": 95,
    "b": 12
  },
  "hsl": {
    "h": 74.458,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.45293,
    "c": 0.10543,
    "h": 123.2
  },
  "luminance": 0.09707
}

Semantic roles & 50–950 ramp

primary
#4B5F0C
secondary
#472D99
accent
#34F462
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #4B5F0C

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

Preview Lab → · Contrast checker → · Palette generator →

#4B5F0C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva