#9C8228#9C8228

#9C8228 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.4% C 0.110 H 92.3°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9C8228
RGBrgb(156, 130, 40)
HSLhsl(47, 59%, 38%)
HSVhsv(47, 74%, 61%)
CMYKcmyk(0%, 16.7%, 74.4%, 38.8%)
CIE-LABlab(55.27, 0.18, 49.76)
CIE-LCHlch(55.27, 49.76, 89.80°)
OKLaboklab(61.45% -0.0044 0.1101)
OKLCHoklch(61.45% 0.11 92.3)
XYZxyz(22.0771, 23.1877, 5.3199)
Luminance0.2319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C8228 #28429C
analogous
#9C4828 #9C8228 #7C9C28
triadic
#9C8228 #289C82 #82289C
tetradic
#9C8228 #289C48 #28429C #9C287C
square
#9C8228 #289C48 #28429C #9C287C
split-complementary
#9C8228 #287C9C #48289C
monochromatic
#3B310F #6B591C #9C8228 #CBAA36 #D8BE67

Accessibility & contrast

On white

3.73
#9C8228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#9C8228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9C8228
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C8228#FFFFFF#000000##000000
##9C82281.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91801A
Deuteranopia (green-blind)
#97882D
Tritanopia (blue-blind)
#A97770
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9c8228;
/* rgb */ color: rgb(156, 130, 40);
/* oklch */ color: oklch(61.4% 0.110 92.3);
Tailwind
colors: {
  custom: {
    50: '#bda668',
    500: '#9c8228',
    950: '#000000',
  },
}
SCSS
$custom: #9c8228;
$custom-light: #bda668;
$custom-dark: #000000;
JSON
{
  "hex": "#9c8228",
  "rgb": {
    "r": 156,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 46.552,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.61449,
    "c": 0.1102,
    "h": 92.3
  },
  "luminance": 0.23186
}

Semantic roles & 50–950 ramp

primary
#9C8228
secondary
#6277BE
accent
#69E245
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9C8228

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

Preview Lab → · Contrast checker → · Palette generator →

#9C8228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva