#B8B628#B8B628

#B8B628 is a light, vivid yellow. Relative luminance 0.438; OKLCH L 75.4% C 0.152 H 108.7°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#B8B628
RGBrgb(184, 182, 40)
HSLhsl(59, 64%, 44%)
HSVhsv(59, 78%, 72%)
CMYKcmyk(0%, 1.1%, 78.3%, 27.8%)
CIE-LABlab(72.10, -15.03, 66.35)
CIE-LCHlch(72.10, 68.03, 102.77°)
OKLaboklab(75.43% -0.0488 0.1443)
OKLCHoklch(75.43% 0.152 108.7)
XYZxyz(36.8796, 43.8007, 8.5188)
Luminance0.4380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B628 #282AB8
analogous
#B86E28 #B8B628 #72B828
triadic
#B8B628 #28B8B6 #B628B8
tetradic
#B8B628 #28B86E #282AB8 #B82872
square
#B8B628 #28B86E #282AB8 #B82872
split-complementary
#B8B628 #2872B8 #6E28B8
monochromatic
#535312 #86841D #B8B628 #D7D546 #E2E079

Accessibility & contrast

On white

2.15
#B8B628 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#B8B628 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B628
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B628#FFFFFF#000000##000000
##B8B6281.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C7B335
Tritanopia (blue-blind)
#C6AA9C
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b8b628;
/* rgb */ color: rgb(184, 182, 40);
/* oklch */ color: oklch(75.4% 0.152 108.7);
Tailwind
colors: {
  custom: {
    50: '#d1cb6f',
    500: '#b8b628',
    950: '#000000',
  },
}
SCSS
$custom: #b8b628;
$custom-light: #d1cb6f;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b628",
  "rgb": {
    "r": 184,
    "g": 182,
    "b": 40
  },
  "hsl": {
    "h": 59.167,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.75429,
    "c": 0.15232,
    "h": 108.7
  },
  "luminance": 0.43799
}

Semantic roles & 50–950 ramp

primary
#B8B628
secondary
#7273CA
accent
#43E741
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B

Preview Lab

Preview with #B8B628

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

Preview Lab → · Contrast checker → · Palette generator →

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