#42540D#42540D

#42540D is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.6% C 0.095 H 123.4°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#42540D
RGBrgb(66, 84, 13)
HSLhsl(75, 73%, 19%)
HSVhsv(75, 85%, 33%)
CMYKcmyk(21.4%, 0%, 84.5%, 67.1%)
CIE-LABlab(32.98, -17.84, 36.03)
CIE-LCHlch(32.98, 40.21, 116.34°)
OKLaboklab(41.62% -0.0523 0.0792)
OKLCHoklch(41.62% 0.095 123.4)
XYZxyz(5.4898, 7.5279, 1.5445)
Luminance0.0753 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42540D #1F0D54
analogous
#54430D #42540D #1F540D
triadic
#42540D #0D4254 #540D42
tetradic
#42540D #0D5443 #1F0D54 #540D1F
square
#42540D #0D5443 #1F0D54 #540D1F
split-complementary
#42540D #0D1F54 #430D54
monochromatic
#151A04 #181F05 #42540D #6C8915 #95BE1D

Accessibility & contrast

On white

8.38
#42540D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#42540D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42540D
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42540D#FFFFFF#000000##FFFFFF
##42540D1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E00
Deuteranopia (green-blind)
#574D14
Tritanopia (blue-blind)
#464F47
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #42540d;
/* rgb */ color: rgb(66, 84, 13);
/* oklch */ color: oklch(41.6% 0.095 123.4);
Tailwind
colors: {
  custom: {
    50: '#798453',
    500: '#42540d',
    950: '#000000',
  },
}
SCSS
$custom: #42540d;
$custom-light: #798453;
$custom-dark: #000000;
JSON
{
  "hex": "#42540d",
  "rgb": {
    "r": 66,
    "g": 84,
    "b": 13
  },
  "hsl": {
    "h": 75.211,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.41618,
    "c": 0.09493,
    "h": 123.4
  },
  "luminance": 0.07528
}

Semantic roles & 50–950 ramp

primary
#42540D
secondary
#472E8F
accent
#38F067
background
#F7F8F4
surface
#EEEFE7
border
#C9CAC3
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #42540D

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

Preview Lab → · Contrast checker → · Palette generator →

#42540D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva