#B2A038#B2A038

#B2A038 is a light, vivid yellow. Relative luminance 0.349; OKLCH L 70.2% C 0.124 H 99.3°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#B2A038
RGBrgb(178, 160, 56)
HSLhsl(51, 52%, 46%)
HSVhsv(51, 69%, 70%)
CMYKcmyk(0%, 10.1%, 68.5%, 30.2%)
CIE-LABlab(65.67, -5.46, 54.30)
CIE-LCHlch(65.67, 54.58, 95.74°)
OKLaboklab(70.22% -0.02 0.1219)
OKLCHoklch(70.22% 0.124 99.3)
XYZxyz(31.6461, 34.8936, 8.8088)
Luminance0.3489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A038 #384AB2
analogous
#B26338 #B2A038 #87B238
triadic
#B2A038 #38B2A0 #A038B2
tetradic
#B2A038 #38B263 #384AB2 #B23887
square
#B2A038 #38B263 #384AB2 #B23887
split-complementary
#B2A038 #3887B2 #6338B2
monochromatic
#554C1B #837629 #B2A038 #CCBB5C #DACE8A

Accessibility & contrast

On white

2.63
#B2A038 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#B2A038 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A038
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A038#FFFFFF#000000##000000
##B2A0381.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C2A
Deuteranopia (green-blind)
#B4A23E
Tritanopia (blue-blind)
#C0948B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #b2a038;
/* rgb */ color: rgb(178, 160, 56);
/* oklch */ color: oklch(70.2% 0.124 99.3);
Tailwind
colors: {
  custom: {
    50: '#ccbb74',
    500: '#b2a038',
    950: '#000000',
  },
}
SCSS
$custom: #b2a038;
$custom-light: #ccbb74;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a038",
  "rgb": {
    "r": 178,
    "g": 160,
    "b": 56
  },
  "hsl": {
    "h": 51.148,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70217,
    "c": 0.12351,
    "h": 99.3
  },
  "luminance": 0.34892
}

Semantic roles & 50–950 ramp

primary
#B2A038
secondary
#818BC5
accent
#61DC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141109
muted
#83807B

Preview Lab

Preview with #B2A038

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

Preview Lab → · Contrast checker → · Palette generator →

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