#9B9840#9B9840

#9B9840 is a light, moderate yellow. Relative luminance 0.298; OKLCH L 66.4% C 0.110 H 107.2°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#9B9840
RGBrgb(155, 152, 64)
HSLhsl(58, 42%, 43%)
HSVhsv(58, 59%, 61%)
CMYKcmyk(0%, 1.9%, 58.7%, 39.2%)
CIE-LABlab(61.48, -10.75, 45.67)
CIE-LCHlch(61.48, 46.92, 103.25°)
OKLaboklab(66.42% -0.0327 0.1054)
OKLCHoklch(66.42% 0.11 107.2)
XYZxyz(25.6720, 29.7960, 9.2484)
Luminance0.2979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B9840 #40439B
analogous
#9B6A40 #9B9840 #709B40
triadic
#9B9840 #409B98 #98409B
tetradic
#9B9840 #409B6A #40439B #9B4070
square
#9B9840 #409B6A #40439B #9B4070
split-complementary
#9B9840 #40709B #6A409B
monochromatic
#44431C #706E2E #9B9840 #BCB95C #CECB88

Accessibility & contrast

On white

3.02
#9B9840 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#9B9840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B9840
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B9840#FFFFFF#000000##000000
##9B98401.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49237
Deuteranopia (green-blind)
#A69645
Tritanopia (blue-blind)
#A58F85
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #9b9840;
/* rgb */ color: rgb(155, 152, 64);
/* oklch */ color: oklch(66.4% 0.110 107.2);
Tailwind
colors: {
  custom: {
    50: '#bbb678',
    500: '#9b9840',
    950: '#000000',
  },
}
SCSS
$custom: #9b9840;
$custom-light: #bbb678;
$custom-dark: #000000;
JSON
{
  "hex": "#9b9840",
  "rgb": {
    "r": 155,
    "g": 152,
    "b": 64
  },
  "hsl": {
    "h": 58.022,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.6642,
    "c": 0.11038,
    "h": 107.2
  },
  "luminance": 0.29795
}

Semantic roles & 50–950 ramp

primary
#9B9840
secondary
#7E80B8
accent
#5AD156
background
#FBFBF7
surface
#F7F6ED
border
#D0D0C8
text
#121109
muted
#81807B

Preview Lab

Preview with #9B9840

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

Preview Lab → · Contrast checker → · Palette generator →

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