#B8B330#B8B330

#B8B330 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.8% C 0.145 H 107.2°. Best body text is #000000 at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#B8B330
RGBrgb(184, 179, 48)
HSLhsl(58, 59%, 45%)
HSVhsv(58, 74%, 72%)
CMYKcmyk(0%, 2.7%, 73.9%, 27.8%)
CIE-LABlab(71.31, -13.18, 63.07)
CIE-LCHlch(71.31, 64.43, 101.80°)
OKLaboklab(74.82% -0.043 0.1388)
OKLCHoklch(74.82% 0.145 107.2)
XYZxyz(36.4222, 42.6452, 9.1085)
Luminance0.4264 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B330 #3035B8
analogous
#B86F30 #B8B330 #79B830
triadic
#B8B330 #30B8B3 #B330B8
tetradic
#B8B330 #30B86F #3035B8 #B83079
square
#B8B330 #30B86F #3035B8 #B83079
split-complementary
#B8B330 #3079B8 #6F30B8
monochromatic
#575517 #878423 #B8B330 #D2CD53 #DFDB84

Accessibility & contrast

On white

2.20
#B8B330 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.53
#B8B330 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B330
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B330#FFFFFF#000000##000000
##B8B3301.002.209.539.53
#FFFFFF2.201.0021.0021.00
#0000009.5321.001.001.00
##0000009.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC15
Deuteranopia (green-blind)
#C5B13A
Tritanopia (blue-blind)
#C6A79A
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #b8b330;
/* rgb */ color: rgb(184, 179, 48);
/* oklch */ color: oklch(74.8% 0.145 107.2);
Tailwind
colors: {
  custom: {
    50: '#d1c972',
    500: '#b8b330',
    950: '#000000',
  },
}
SCSS
$custom: #b8b330;
$custom-light: #d1c972;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b330",
  "rgb": {
    "r": 184,
    "g": 179,
    "b": 48
  },
  "hsl": {
    "h": 57.794,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.74818,
    "c": 0.14527,
    "h": 107.2
  },
  "luminance": 0.42644
}

Semantic roles & 50–950 ramp

primary
#B8B330
secondary
#7C7FC8
accent
#4CE246
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B8B330

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

Preview Lab → · Contrast checker → · Palette generator →

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