#5F6231#5F6231

#5F6231 is a mid, moderate yellow. Relative luminance 0.114; OKLCH L 48.2% C 0.070 H 111.8°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5F6231
RGBrgb(95, 98, 49)
HSLhsl(64, 33%, 29%)
HSVhsv(64, 50%, 38%)
CMYKcmyk(3.1%, 0%, 50%, 61.6%)
CIE-LABlab(40.23, -9.18, 27.31)
CIE-LCHlch(40.23, 28.82, 108.58°)
OKLaboklab(48.15% -0.0261 0.0652)
OKLCHoklch(48.15% 0.07 111.8)
XYZxyz(9.6415, 11.3902, 4.5958)
Luminance0.1139 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6231 #343162
analogous
#624D31 #5F6231 #476231
triadic
#5F6231 #315F62 #62315F
tetradic
#5F6231 #31624D #343162 #623147
square
#5F6231 #31624D #343162 #623147
split-complementary
#5F6231 #314762 #4D3162
monochromatic
#14140A #37391D #5F6231 #878B45 #AAAF5F

Accessibility & contrast

On white

6.41
#5F6231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5F6231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6231
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6231#FFFFFF#000000##FFFFFF
##5F62311.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685E2D
Deuteranopia (green-blind)
#695F33
Tritanopia (blue-blind)
#655D57
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f6231;
/* rgb */ color: rgb(95, 98, 49);
/* oklch */ color: oklch(48.2% 0.070 111.8);
Tailwind
colors: {
  custom: {
    50: '#8d8e6a',
    500: '#5f6231',
    950: '#000000',
  },
}
SCSS
$custom: #5f6231;
$custom-light: #8d8e6a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6231",
  "rgb": {
    "r": 95,
    "g": 98,
    "b": 49
  },
  "hsl": {
    "h": 63.673,
    "s": 33.333,
    "l": 28.824
  },
  "oklch": {
    "l": 0.48154,
    "c": 0.07021,
    "h": 111.8
  },
  "luminance": 0.1139
}

Semantic roles & 50–950 ramp

primary
#5F6231
secondary
#5F5C93
accent
#5EC965
background
#F8F8F6
surface
#F0F0EB
border
#CBCBC6
text
#0C0C06
muted
#7D7D7A

Preview Lab

Preview with #5F6231

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

Preview Lab → · Contrast checker → · Palette generator →

#5F6231 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva