#B8B230#B8B230

#B8B230 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.6% C 0.144 H 106.7°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#B8B230
RGBrgb(184, 178, 48)
HSLhsl(57, 59%, 45%)
HSVhsv(57, 74%, 72%)
CMYKcmyk(0%, 3.3%, 73.9%, 27.8%)
CIE-LABlab(71.04, -12.67, 62.81)
CIE-LCHlch(71.04, 64.08, 101.40°)
OKLaboklab(74.6% -0.0415 0.1382)
OKLCHoklch(74.6% 0.144 106.7)
XYZxyz(36.2225, 42.2458, 9.0420)
Luminance0.4224 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8B230 #3036B8
analogous
#B86E30 #B8B230 #7AB830
triadic
#B8B230 #30B8B2 #B230B8
tetradic
#B8B230 #30B86E #3036B8 #B8307A
square
#B8B230 #30B86E #3036B8 #B8307A
split-complementary
#B8B230 #307AB8 #6E30B8
monochromatic
#575417 #878323 #B8B230 #D2CD53 #DFDB84

Accessibility & contrast

On white

2.22
#B8B230 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#B8B230 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8B230
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8B230#FFFFFF#000000##000000
##B8B2301.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB16
Deuteranopia (green-blind)
#C4B03A
Tritanopia (blue-blind)
#C6A699
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b8b230;
/* rgb */ color: rgb(184, 178, 48);
/* oklch */ color: oklch(74.6% 0.144 106.7);
Tailwind
colors: {
  custom: {
    50: '#d1c872',
    500: '#b8b230',
    950: '#000000',
  },
}
SCSS
$custom: #b8b230;
$custom-light: #d1c872;
$custom-dark: #000000;
JSON
{
  "hex": "#b8b230",
  "rgb": {
    "r": 184,
    "g": 178,
    "b": 48
  },
  "hsl": {
    "h": 57.353,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.746,
    "c": 0.14434,
    "h": 106.7
  },
  "luminance": 0.42245
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B8B230

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

Preview Lab → · Contrast checker → · Palette generator →

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