#B2A438#B2A438

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

Color values

HEX#B2A438
RGBrgb(178, 164, 56)
HSLhsl(53, 52%, 46%)
HSVhsv(53, 69%, 70%)
CMYKcmyk(0%, 7.9%, 68.5%, 30.2%)
CIE-LABlab(66.75, -7.58, 55.41)
CIE-LCHlch(66.75, 55.93, 97.79°)
OKLaboklab(71.08% -0.026 0.1242)
OKLCHoklch(71.08% 0.127 101.8)
XYZxyz(32.3507, 36.3028, 9.0437)
Luminance0.3630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A438 #3846B2
analogous
#B26738 #B2A438 #83B238
triadic
#B2A438 #38B2A4 #A438B2
tetradic
#B2A438 #38B267 #3846B2 #B23883
square
#B2A438 #38B267 #3846B2 #B23883
split-complementary
#B2A438 #3883B2 #6738B2
monochromatic
#554E1B #837929 #B2A438 #CCBF5C #DAD18A

Accessibility & contrast

On white

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

On black

8.26
#B2A438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A438
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A438#FFFFFF#000000##000000
##B2A4381.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F29
Deuteranopia (green-blind)
#B7A53F
Tritanopia (blue-blind)
#BF998E
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b2a438;
/* rgb */ color: rgb(178, 164, 56);
/* oklch */ color: oklch(71.1% 0.127 101.8);
Tailwind
colors: {
  custom: {
    50: '#ccbe75',
    500: '#b2a438',
    950: '#000000',
  },
}
SCSS
$custom: #b2a438;
$custom-light: #ccbe75;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a438",
  "rgb": {
    "r": 178,
    "g": 164,
    "b": 56
  },
  "hsl": {
    "h": 53.115,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.71078,
    "c": 0.12693,
    "h": 101.8
  },
  "luminance": 0.36301
}

Semantic roles & 50–950 ramp

primary
#B2A438
secondary
#8189C5
accent
#5DDC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B2A438

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

Preview Lab → · Contrast checker → · Palette generator →

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