#908A1F#908A1F

#908A1F is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 62.0% C 0.122 H 106.1°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#908A1F
RGBrgb(144, 138, 31)
HSLhsl(57, 65%, 34%)
HSVhsv(57, 78%, 56%)
CMYKcmyk(0%, 4.2%, 78.5%, 43.5%)
CIE-LABlab(56.29, -10.12, 53.65)
CIE-LCHlch(56.29, 54.59, 100.68°)
OKLaboklab(61.98% -0.0338 0.1171)
OKLCHoklch(61.98% 0.122 106.1)
XYZxyz(20.8383, 24.2060, 4.8706)
Luminance0.2420 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#908A1F #1F2590
analogous
#90521F #908A1F #5E901F
triadic
#908A1F #1F908A #8A1F90
tetradic
#908A1F #1F9052 #1F2590 #901F5E
square
#908A1F #1F9052 #1F2590 #901F5E
split-complementary
#908A1F #1F5E90 #521F90
monochromatic
#2B2909 #5E5A14 #908A1F #C2BA2A #D9D250

Accessibility & contrast

On white

3.60
#908A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#908A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #908A1F
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##908A1F#FFFFFF#000000##000000
##908A1F1.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968504
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#9B8076
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #908a1f;
/* rgb */ color: rgb(144, 138, 31);
/* oklch */ color: oklch(62.0% 0.122 106.1);
Tailwind
colors: {
  custom: {
    50: '#b4ab64',
    500: '#908a1f',
    950: '#000000',
  },
}
SCSS
$custom: #908a1f;
$custom-light: #b4ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#908a1f",
  "rgb": {
    "r": 144,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 56.814,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61975,
    "c": 0.12188,
    "h": 106.1
  },
  "luminance": 0.24205
}

Semantic roles & 50–950 ramp

primary
#908A1F
secondary
#4E54BC
accent
#49E840
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #908A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#908A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva