#B3A21B#B3A21B

#B3A21B is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.141 H 101.4°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#B3A21B
RGBrgb(179, 162, 27)
HSLhsl(53, 74%, 40%)
HSVhsv(53, 85%, 70%)
CMYKcmyk(0%, 9.5%, 84.9%, 29.8%)
CIE-LABlab(66.14, -7.27, 64.60)
CIE-LCHlch(66.14, 65.00, 96.42°)
OKLaboklab(70.56% -0.0279 0.1383)
OKLCHoklch(70.56% 0.141 101.4)
XYZxyz(31.7102, 35.5050, 6.2196)
Luminance0.3550 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3A21B #1B2CB3
analogous
#B3561B #B3A21B #78B31B
triadic
#B3A21B #1BB3A2 #A21BB3
tetradic
#B3A21B #1BB356 #1B2CB3 #B31B78
square
#B3A21B #1BB356 #1B2CB3 #B31B78
split-complementary
#B3A21B #1B78B3 #561BB3
monochromatic
#49420B #7E7213 #B3A21B #DFCB2C #E7D861

Accessibility & contrast

On white

2.59
#B3A21B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#B3A21B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3A21B
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3A21B#FFFFFF#000000##000000
##B3A21B1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D00
Deuteranopia (green-blind)
#B7A428
Tritanopia (blue-blind)
#C1958A
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b3a21b;
/* rgb */ color: rgb(179, 162, 27);
/* oklch */ color: oklch(70.6% 0.141 101.4);
Tailwind
colors: {
  custom: {
    50: '#cebd67',
    500: '#b3a21b',
    950: '#000000',
  },
}
SCSS
$custom: #b3a21b;
$custom-light: #cebd67;
$custom-dark: #000000;
JSON
{
  "hex": "#b3a21b",
  "rgb": {
    "r": 179,
    "g": 162,
    "b": 27
  },
  "hsl": {
    "h": 53.289,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.70564,
    "c": 0.14107,
    "h": 101.4
  },
  "luminance": 0.35503
}

Semantic roles & 50–950 ramp

primary
#B3A21B
secondary
#5E6ACC
accent
#4CF037
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141207
muted
#83817A

Preview Lab

Preview with #B3A21B

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

Preview Lab → · Contrast checker → · Palette generator →

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