#B2A23E#B2A23E

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

Color values

HEX#B2A23E
RGBrgb(178, 162, 62)
HSLhsl(52, 48%, 47%)
HSVhsv(52, 65%, 70%)
CMYKcmyk(0%, 9%, 65.2%, 30.2%)
CIE-LABlab(66.26, -6.17, 52.36)
CIE-LCHlch(66.26, 52.72, 96.72°)
OKLaboklab(70.7% -0.0213 0.1188)
OKLCHoklch(70.7% 0.121 100.2)
XYZxyz(32.1513, 35.6548, 9.7450)
Luminance0.3565 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A23E #3E4EB2
analogous
#B2683E #B2A23E #88B23E
triadic
#B2A23E #3EB2A2 #A23EB2
tetradic
#B2A23E #3EB268 #3E4EB2 #B23E88
square
#B2A23E #3EB268 #3E4EB2 #B23E88
split-complementary
#B2A23E #3E88B2 #683EB2
monochromatic
#574F1E #85792E #B2A23E #C9BB64 #D9CF92

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B2A23E#FFFFFF#000000##000000
##B2A23E1.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)
#B19E32
Deuteranopia (green-blind)
#B5A443
Tritanopia (blue-blind)
#BF978D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a23e;
/* rgb */ color: rgb(178, 162, 62);
/* oklch */ color: oklch(70.7% 0.121 100.2);
Tailwind
colors: {
  custom: {
    50: '#ccbd78',
    500: '#b2a23e',
    950: '#000000',
  },
}
SCSS
$custom: #b2a23e;
$custom-light: #ccbd78;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a23e",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 62
  },
  "hsl": {
    "h": 51.724,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.707,
    "c": 0.12066,
    "h": 100.2
  },
  "luminance": 0.35653
}

Semantic roles & 50–950 ramp

primary
#B2A23E
secondary
#8890C4
accent
#63D850
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #B2A23E

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

Preview Lab → · Contrast checker → · Palette generator →

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