#958228#958228

#958228 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.7% C 0.109 H 96.9°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#958228
RGBrgb(149, 130, 40)
HSLhsl(50, 58%, 37%)
HSVhsv(50, 73%, 58%)
CMYKcmyk(0%, 12.8%, 73.2%, 41.6%)
CIE-LABlab(54.56, -3.03, 48.83)
CIE-LCHlch(54.56, 48.92, 93.55°)
OKLaboklab(60.73% -0.0132 0.1084)
OKLCHoklch(60.73% 0.109 96.9)
XYZxyz(20.7611, 22.5091, 5.2582)
Luminance0.2251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#958228 #283B95
analogous
#954B28 #958228 #729528
triadic
#958228 #289582 #822895
tetradic
#958228 #28954B #283B95 #952872
square
#958228 #28954B #283B95 #952872
split-complementary
#958228 #287295 #4B2895
monochromatic
#352E0E #65581B #958228 #C5AC35 #D5C162

Accessibility & contrast

On white

3.82
#958228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#958228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #958228
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##958228#FFFFFF#000000##000000
##9582281.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F1A
Deuteranopia (green-blind)
#94852D
Tritanopia (blue-blind)
#A17870
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #958228;
/* rgb */ color: rgb(149, 130, 40);
/* oklch */ color: oklch(60.7% 0.109 96.9);
Tailwind
colors: {
  custom: {
    50: '#b8a668',
    500: '#958228',
    950: '#000000',
  },
}
SCSS
$custom: #958228;
$custom-light: #b8a668;
$custom-dark: #000000;
JSON
{
  "hex": "#958228",
  "rgb": {
    "r": 149,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 49.541,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.6073,
    "c": 0.10923,
    "h": 96.9
  },
  "luminance": 0.22508
}

Semantic roles & 50–950 ramp

primary
#958228
secondary
#5E6EBB
accent
#62E147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #958228

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

Preview Lab → · Contrast checker → · Palette generator →

#958228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva