#42631F#42631F

#42631F is a mid, moderate yellow-green. Relative luminance 0.102; OKLCH L 45.9% C 0.103 H 131.5°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#42631F
RGBrgb(66, 99, 31)
HSLhsl(89, 52%, 25%)
HSVhsv(89, 69%, 39%)
CMYKcmyk(33.3%, 0%, 68.7%, 61.2%)
CIE-LABlab(38.16, -24.33, 33.70)
CIE-LCHlch(38.16, 41.56, 125.83°)
OKLaboklab(45.87% -0.0684 0.0773)
OKLCHoklch(45.87% 0.103 131.5)
XYZxyz(6.9559, 10.1806, 2.8946)
Luminance0.1018 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42631F #401F63
analogous
#63621F #42631F #20631F
triadic
#42631F #1F4263 #631F42
tetradic
#42631F #1F6362 #401F63 #631F20
square
#42631F #1F6362 #401F63 #631F20
split-complementary
#42631F #1F2063 #621F63
monochromatic
#101707 #233410 #42631F #61922E #80C03C

Accessibility & contrast

On white

6.92
#42631F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#42631F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42631F
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42631F#FFFFFF#000000##FFFFFF
##42631F1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675B16
Deuteranopia (green-blind)
#635924
Tritanopia (blue-blind)
#435F55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #42631f;
/* rgb */ color: rgb(66, 99, 31);
/* oklch */ color: oklch(45.9% 0.103 131.5);
Tailwind
colors: {
  custom: {
    50: '#798f5e',
    500: '#42631f',
    950: '#000000',
  },
}
SCSS
$custom: #42631f;
$custom-light: #798f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#42631f",
  "rgb": {
    "r": 66,
    "g": 99,
    "b": 31
  },
  "hsl": {
    "h": 89.118,
    "s": 52.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.45868,
    "c": 0.10323,
    "h": 131.5
  },
  "luminance": 0.10181
}

Semantic roles & 50–950 ramp

primary
#42631F
secondary
#6E4698
accent
#4CDC92
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #42631F

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

Preview Lab → · Contrast checker → · Palette generator →

#42631F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva