#B2A12E#B2A12E

#B2A12E is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.4% C 0.131 H 100.6°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#B2A12E
RGBrgb(178, 161, 46)
HSLhsl(52, 59%, 44%)
HSVhsv(52, 74%, 70%)
CMYKcmyk(0%, 9.6%, 74.2%, 30.2%)
CIE-LABlab(65.87, -6.50, 58.43)
CIE-LCHlch(65.87, 58.79, 96.35°)
OKLaboklab(70.36% -0.024 0.1288)
OKLCHoklch(70.36% 0.131 100.6)
XYZxyz(31.5996, 35.1534, 7.7051)
Luminance0.3515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A12E #2E3FB2
analogous
#B25F2E #B2A12E #81B22E
triadic
#B2A12E #2EB2A1 #A12EB2
tetradic
#B2A12E #2EB25F #2E3FB2 #B22E81
square
#B2A12E #2EB25F #2E3FB2 #B22E81
split-complementary
#B2A12E #2E81B2 #5F2EB2
monochromatic
#514915 #817521 #B2A12E #D1C04C #DDD17D

Accessibility & contrast

On white

2.62
#B2A12E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#B2A12E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A12E
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A12E#FFFFFF#000000##000000
##B2A12E1.002.628.038.03
#FFFFFF2.621.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C19
Deuteranopia (green-blind)
#B5A336
Tritanopia (blue-blind)
#C0958B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b2a12e;
/* rgb */ color: rgb(178, 161, 46);
/* oklch */ color: oklch(70.4% 0.131 100.6);
Tailwind
colors: {
  custom: {
    50: '#cdbc6f',
    500: '#b2a12e',
    950: '#000000',
  },
}
SCSS
$custom: #b2a12e;
$custom-light: #cdbc6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a12e",
  "rgb": {
    "r": 178,
    "g": 161,
    "b": 46
  },
  "hsl": {
    "h": 52.273,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.70355,
    "c": 0.13101,
    "h": 100.6
  },
  "luminance": 0.35152
}

Semantic roles & 50–950 ramp

primary
#B2A12E
secondary
#7680C6
accent
#5AE246
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B2A12E

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

Preview Lab → · Contrast checker → · Palette generator →

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