#B2A62B#B2A62B

#B2A62B is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.4% C 0.137 H 103.6°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#B2A62B
RGBrgb(178, 166, 43)
HSLhsl(55, 61%, 43%)
HSVhsv(55, 76%, 70%)
CMYKcmyk(0%, 6.7%, 75.8%, 30.2%)
CIE-LABlab(67.21, -9.27, 60.76)
CIE-LCHlch(67.21, 61.46, 98.68°)
OKLaboklab(71.42% -0.0322 0.1332)
OKLCHoklch(71.42% 0.137 103.6)
XYZxyz(32.4338, 36.9132, 7.7016)
Luminance0.3691 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A62B #2B37B2
analogous
#B2622B #B2A62B #7AB22B
triadic
#B2A62B #2BB2A6 #A62BB2
tetradic
#B2A62B #2BB262 #2B37B2 #B22B7A
square
#B2A62B #2BB262 #2B37B2 #B22B7A
split-complementary
#B2A62B #2B7AB2 #622BB2
monochromatic
#4F4A13 #81781F #B2A62B #D3C648 #DFD679

Accessibility & contrast

On white

2.51
#B2A62B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.38
#B2A62B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A62B
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A62B#FFFFFF#000000##000000
##B2A62B1.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A010
Deuteranopia (green-blind)
#B9A634
Tritanopia (blue-blind)
#C09A8F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b2a62b;
/* rgb */ color: rgb(178, 166, 43);
/* oklch */ color: oklch(71.4% 0.137 103.6);
Tailwind
colors: {
  custom: {
    50: '#cdc06e',
    500: '#b2a62b',
    950: '#000000',
  },
}
SCSS
$custom: #b2a62b;
$custom-light: #cdc06e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a62b",
  "rgb": {
    "r": 178,
    "g": 166,
    "b": 43
  },
  "hsl": {
    "h": 54.667,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.71418,
    "c": 0.13698,
    "h": 103.6
  },
  "luminance": 0.36912
}

Semantic roles & 50–950 ramp

primary
#B2A62B
secondary
#727AC7
accent
#52E444
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A62B

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

Preview Lab → · Contrast checker → · Palette generator →

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