#938B1F#938B1F

#938B1F is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.5% C 0.122 H 105.0°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#938B1F
RGBrgb(147, 139, 31)
HSLhsl(56, 65%, 35%)
HSVhsv(56, 79%, 58%)
CMYKcmyk(0%, 5.4%, 78.9%, 42.4%)
CIE-LABlab(56.85, -9.29, 54.25)
CIE-LCHlch(56.85, 55.04, 99.72°)
OKLaboklab(62.48% -0.0317 0.1183)
OKLCHoklch(62.48% 0.122 105)
XYZxyz(21.5135, 24.7681, 4.9436)
Luminance0.2477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#938B1F #1F2793
analogous
#93511F #938B1F #61931F
triadic
#938B1F #1F938B #8B1F93
tetradic
#938B1F #1F9351 #1F2793 #931F61
square
#938B1F #1F9351 #1F2793 #931F61
split-complementary
#938B1F #1F6193 #511F93
monochromatic
#2E2B0A #605B14 #938B1F #C6BB2A #DAD152

Accessibility & contrast

On white

3.53
#938B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#938B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #938B1F
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##938B1F#FFFFFF#000000##000000
##938B1F1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988603
Deuteranopia (green-blind)
#9B8A28
Tritanopia (blue-blind)
#9E8177
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #938b1f;
/* rgb */ color: rgb(147, 139, 31);
/* oklch */ color: oklch(62.5% 0.122 105.0);
Tailwind
colors: {
  custom: {
    50: '#b6ac65',
    500: '#938b1f',
    950: '#000000',
  },
}
SCSS
$custom: #938b1f;
$custom-light: #b6ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#938b1f",
  "rgb": {
    "r": 147,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 55.862,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.62483,
    "c": 0.12241,
    "h": 105
  },
  "luminance": 0.24767
}

Semantic roles & 50–950 ramp

primary
#938B1F
secondary
#5058BE
accent
#4BE840
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#121006
muted
#817F7A

Preview Lab

Preview with #938B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#938B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva