#B2A538#B2A538

#B2A538 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.3% C 0.128 H 102.4°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#B2A538
RGBrgb(178, 165, 56)
HSLhsl(54, 52%, 46%)
HSVhsv(54, 69%, 70%)
CMYKcmyk(0%, 7.3%, 68.5%, 30.2%)
CIE-LABlab(67.02, -8.11, 55.69)
CIE-LCHlch(67.02, 56.28, 98.29°)
OKLaboklab(71.29% -0.0275 0.1248)
OKLCHoklch(71.29% 0.128 102.4)
XYZxyz(32.5304, 36.6621, 9.1036)
Luminance0.3666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A538 #3845B2
analogous
#B26838 #B2A538 #82B238
triadic
#B2A538 #38B2A5 #A538B2
tetradic
#B2A538 #38B268 #3845B2 #B23882
square
#B2A538 #38B268 #3845B2 #B23882
split-complementary
#B2A538 #3882B2 #6838B2
monochromatic
#554F1B #837A29 #B2A538 #CCC05C #DAD28A

Accessibility & contrast

On white

2.52
#B2A538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#B2A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A538
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A538#FFFFFF#000000##000000
##B2A5381.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A029
Deuteranopia (green-blind)
#B8A63F
Tritanopia (blue-blind)
#BF9A8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b2a538;
/* rgb */ color: rgb(178, 165, 56);
/* oklch */ color: oklch(71.3% 0.128 102.4);
Tailwind
colors: {
  custom: {
    50: '#ccbf75',
    500: '#b2a538',
    950: '#000000',
  },
}
SCSS
$custom: #b2a538;
$custom-light: #ccbf75;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a538",
  "rgb": {
    "r": 178,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 53.607,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71294,
    "c": 0.12781,
    "h": 102.4
  },
  "luminance": 0.36661
}

Semantic roles & 50–950 ramp

primary
#B2A538
secondary
#8188C5
accent
#5BDC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B2A538

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

Preview Lab → · Contrast checker → · Palette generator →

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