#B0A228#B0A228

#B0A228 is a light, vivid yellow. Relative luminance 0.352; OKLCH L 70.3% C 0.135 H 102.5°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#B0A228
RGBrgb(176, 162, 40)
HSLhsl(54, 63%, 42%)
HSVhsv(54, 77%, 69%)
CMYKcmyk(0%, 8%, 77.3%, 31%)
CIE-LABlab(65.92, -8.17, 60.51)
CIE-LCHlch(65.92, 61.06, 97.69°)
OKLaboklab(70.35% -0.0292 0.1321)
OKLCHoklch(70.35% 0.135 102.5)
XYZxyz(31.2093, 35.2254, 7.1623)
Luminance0.3522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B0A228 #2836B0
analogous
#B05E28 #B0A228 #7AB028
triadic
#B0A228 #28B0A2 #A228B0
tetradic
#B0A228 #28B05E #2836B0 #B0287A
square
#B0A228 #28B05E #2836B0 #B0287A
split-complementary
#B0A228 #287AB0 #5E28B0
monochromatic
#4C4611 #7E741D #B0A228 #D4C541 #DFD473

Accessibility & contrast

On white

2.61
#B0A228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#B0A228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B0A228
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B0A228#FFFFFF#000000##000000
##B0A2281.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D0B
Deuteranopia (green-blind)
#B6A331
Tritanopia (blue-blind)
#BE968B
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b0a228;
/* rgb */ color: rgb(176, 162, 40);
/* oklch */ color: oklch(70.3% 0.135 102.5);
Tailwind
colors: {
  custom: {
    50: '#cbbd6c',
    500: '#b0a228',
    950: '#000000',
  },
}
SCSS
$custom: #b0a228;
$custom-light: #cbbd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#b0a228",
  "rgb": {
    "r": 176,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 53.824,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.70345,
    "c": 0.13533,
    "h": 102.5
  },
  "luminance": 0.35224
}

Semantic roles & 50–950 ramp

primary
#B0A228
secondary
#6D77C6
accent
#53E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #B0A228

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

Preview Lab → · Contrast checker → · Palette generator →

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