#B5A234#B5A234

#B5A234 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.9% C 0.128 H 99.2°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#B5A234
RGBrgb(181, 162, 52)
HSLhsl(51, 55%, 46%)
HSVhsv(51, 71%, 71%)
CMYKcmyk(0%, 10.5%, 71.3%, 29%)
CIE-LABlab(66.45, -5.42, 56.81)
CIE-LCHlch(66.45, 57.07, 95.45°)
OKLaboklab(70.9% -0.0205 0.1264)
OKLCHoklch(70.9% 0.128 99.2)
XYZxyz(32.5977, 35.9139, 8.4632)
Luminance0.3591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A234 #3447B5
analogous
#B56134 #B5A234 #87B534
triadic
#B5A234 #34B5A2 #A234B5
tetradic
#B5A234 #34B561 #3447B5 #B53487
square
#B5A234 #34B561 #3447B5 #B53487
split-complementary
#B5A234 #3487B5 #6134B5
monochromatic
#564D19 #857726 #B5A234 #CFBD57 #DCD087

Accessibility & contrast

On white

2.57
#B5A234 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#B5A234 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A234
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A234#FFFFFF#000000##000000
##B5A2341.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E23
Deuteranopia (green-blind)
#B7A53B
Tritanopia (blue-blind)
#C3968C
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b5a234;
/* rgb */ color: rgb(181, 162, 52);
/* oklch */ color: oklch(70.9% 0.128 99.2);
Tailwind
colors: {
  custom: {
    50: '#cfbd72',
    500: '#b5a234',
    950: '#000000',
  },
}
SCSS
$custom: #b5a234;
$custom-light: #cfbd72;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a234",
  "rgb": {
    "r": 181,
    "g": 162,
    "b": 52
  },
  "hsl": {
    "h": 51.163,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.70898,
    "c": 0.12802,
    "h": 99.2
  },
  "luminance": 0.35912
}

Semantic roles & 50–950 ramp

primary
#B5A234
secondary
#7F89C6
accent
#5FDF49
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A234

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

Preview Lab → · Contrast checker → · Palette generator →

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