#9E9228#9E9228

#9E9228 is a light, vivid yellow. Relative luminance 0.280; OKLCH L 65.1% C 0.123 H 102.7°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#9E9228
RGBrgb(158, 146, 40)
HSLhsl(54, 60%, 39%)
HSVhsv(54, 75%, 62%)
CMYKcmyk(0%, 7.6%, 74.7%, 38%)
CIE-LABlab(59.87, -7.69, 54.27)
CIE-LCHlch(59.87, 54.81, 98.06°)
OKLaboklab(65.14% -0.0269 0.1196)
OKLCHoklch(65.14% 0.123 102.7)
XYZxyz(24.7635, 27.9811, 6.1036)
Luminance0.2798 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9228 #28349E
analogous
#9E5728 #9E9228 #6F9E28
triadic
#9E9228 #289E92 #92289E
tetradic
#9E9228 #289E57 #28349E #9E286F
square
#9E9228 #289E57 #28349E #9E286F
split-complementary
#9E9228 #286F9E #57289E
monochromatic
#3C380F #6D651C #9E9228 #CCBD37 #D9CD68

Accessibility & contrast

On white

3.18
#9E9228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#9E9228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E9228
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9228#FFFFFF#000000##000000
##9E92281.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A08D14
Deuteranopia (green-blind)
#A3932F
Tritanopia (blue-blind)
#AA877D
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9e9228;
/* rgb */ color: rgb(158, 146, 40);
/* oklch */ color: oklch(65.1% 0.123 102.7);
Tailwind
colors: {
  custom: {
    50: '#beb16a',
    500: '#9e9228',
    950: '#000000',
  },
}
SCSS
$custom: #9e9228;
$custom-light: #beb16a;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9228",
  "rgb": {
    "r": 158,
    "g": 146,
    "b": 40
  },
  "hsl": {
    "h": 53.898,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.65144,
    "c": 0.12259,
    "h": 102.7
  },
  "luminance": 0.2798
}

Semantic roles & 50–950 ramp

primary
#9E9228
secondary
#636CBF
accent
#55E345
background
#FCFAF6
surface
#F8F5EB
border
#D1CFC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E9228

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

Preview Lab → · Contrast checker → · Palette generator →

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