#B2A830#B2A830

#B2A830 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.9% C 0.136 H 104.5°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#B2A830
RGBrgb(178, 168, 48)
HSLhsl(55, 58%, 44%)
HSVhsv(55, 73%, 70%)
CMYKcmyk(0%, 5.6%, 73%, 30.2%)
CIE-LABlab(67.79, -10.10, 59.54)
CIE-LCHlch(67.79, 60.39, 99.62°)
OKLaboklab(71.89% -0.034 0.1315)
OKLCHoklch(71.89% 0.136 104.5)
XYZxyz(32.8976, 37.6849, 8.3368)
Luminance0.3768 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A830 #303AB2
analogous
#B26730 #B2A830 #7BB230
triadic
#B2A830 #30B2A8 #A830B2
tetradic
#B2A830 #30B267 #303AB2 #B2307B
square
#B2A830 #30B267 #303AB2 #B2307B
split-complementary
#B2A830 #307BB2 #6730B2
monochromatic
#524D16 #827B23 #B2A830 #D0C650 #DDD680

Accessibility & contrast

On white

2.46
#B2A830 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#B2A830 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A830
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A830#FFFFFF#000000##000000
##B2A8301.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A21A
Deuteranopia (green-blind)
#BAA838
Tritanopia (blue-blind)
#BF9C91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b2a830;
/* rgb */ color: rgb(178, 168, 48);
/* oklch */ color: oklch(71.9% 0.136 104.5);
Tailwind
colors: {
  custom: {
    50: '#cdc171',
    500: '#b2a830',
    950: '#000000',
  },
}
SCSS
$custom: #b2a830;
$custom-light: #cdc171;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a830",
  "rgb": {
    "r": 178,
    "g": 168,
    "b": 48
  },
  "hsl": {
    "h": 55.385,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71885,
    "c": 0.13583,
    "h": 104.5
  },
  "luminance": 0.37684
}

Semantic roles & 50–950 ramp

primary
#B2A830
secondary
#787EC6
accent
#53E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A830

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

Preview Lab → · Contrast checker → · Palette generator →

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