#B2A23D#B2A23D

#B2A23D is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.121 H 100.3°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#B2A23D
RGBrgb(178, 162, 61)
HSLhsl(52, 49%, 47%)
HSVhsv(52, 66%, 70%)
CMYKcmyk(0%, 9%, 65.7%, 30.2%)
CIE-LABlab(66.25, -6.23, 52.78)
CIE-LCHlch(66.25, 53.15, 96.73°)
OKLaboklab(70.69% -0.0216 0.1195)
OKLCHoklch(70.69% 0.121 100.3)
XYZxyz(32.1241, 35.6440, 9.6018)
Luminance0.3564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A23D #3D4DB2
analogous
#B2683D #B2A23D #88B23D
triadic
#B2A23D #3DB2A2 #A23DB2
tetradic
#B2A23D #3DB268 #3D4DB2 #B23D88
square
#B2A23D #3DB268 #3D4DB2 #B23D88
split-complementary
#B2A23D #3D88B2 #683DB2
monochromatic
#574F1E #84792D #B2A23D #C9BB63 #D9CF90

Accessibility & contrast

On white

2.58
#B2A23D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#B2A23D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A23D
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A23D#FFFFFF#000000##000000
##B2A23D1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E30
Deuteranopia (green-blind)
#B5A443
Tritanopia (blue-blind)
#BF978D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a23d;
/* rgb */ color: rgb(178, 162, 61);
/* oklch */ color: oklch(70.7% 0.121 100.3);
Tailwind
colors: {
  custom: {
    50: '#ccbd77',
    500: '#b2a23d',
    950: '#000000',
  },
}
SCSS
$custom: #b2a23d;
$custom-light: #ccbd77;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a23d",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 61
  },
  "hsl": {
    "h": 51.795,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.70691,
    "c": 0.12144,
    "h": 100.3
  },
  "luminance": 0.35643
}

Semantic roles & 50–950 ramp

primary
#B2A23D
secondary
#878FC4
accent
#62D94F
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #B2A23D

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

Preview Lab → · Contrast checker → · Palette generator →

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