#B5A335#B5A335

#B5A335 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.1% C 0.128 H 99.8°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#B5A335
RGBrgb(181, 163, 53)
HSLhsl(52, 55%, 46%)
HSVhsv(52, 71%, 71%)
CMYKcmyk(0%, 9.9%, 70.7%, 29%)
CIE-LABlab(66.73, -5.90, 56.69)
CIE-LCHlch(66.73, 56.99, 95.94°)
OKLaboklab(71.12% -0.0218 0.1263)
OKLCHoklch(71.12% 0.128 99.8)
XYZxyz(32.7974, 36.2767, 8.6420)
Luminance0.3628 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A335 #3547B5
analogous
#B56335 #B5A335 #87B535
triadic
#B5A335 #35B5A3 #A335B5
tetradic
#B5A335 #35B563 #3547B5 #B53587
square
#B5A335 #35B563 #3547B5 #B53587
split-complementary
#B5A335 #3587B5 #6335B5
monochromatic
#564E19 #867827 #B5A335 #CEBE59 #DCD088

Accessibility & contrast

On white

2.54
#B5A335 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#B5A335 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A335
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A335#FFFFFF#000000##000000
##B5A3351.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F24
Deuteranopia (green-blind)
#B8A53C
Tritanopia (blue-blind)
#C3978D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b5a335;
/* rgb */ color: rgb(181, 163, 53);
/* oklch */ color: oklch(71.1% 0.128 99.8);
Tailwind
colors: {
  custom: {
    50: '#cfbd73',
    500: '#b5a335',
    950: '#000000',
  },
}
SCSS
$custom: #b5a335;
$custom-light: #cfbd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a335",
  "rgb": {
    "r": 181,
    "g": 163,
    "b": 53
  },
  "hsl": {
    "h": 51.562,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.7112,
    "c": 0.12815,
    "h": 99.8
  },
  "luminance": 0.36275
}

Semantic roles & 50–950 ramp

primary
#B5A335
secondary
#808AC6
accent
#5FDE4A
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A335

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

Preview Lab → · Contrast checker → · Palette generator →

#B5A335 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva