#B6B231#B6B231

#B6B231 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.4% C 0.144 H 107.6°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#B6B231
RGBrgb(182, 178, 49)
HSLhsl(58, 58%, 45%)
HSVhsv(58, 73%, 71%)
CMYKcmyk(0%, 2.2%, 73.1%, 28.6%)
CIE-LABlab(70.88, -13.49, 62.25)
CIE-LCHlch(70.88, 63.69, 102.22°)
OKLaboklab(74.43% -0.0436 0.1373)
OKLCHoklch(74.43% 0.144 107.6)
XYZxyz(35.7676, 42.0088, 9.1296)
Luminance0.4201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B6B231 #3135B6
analogous
#B66F31 #B6B231 #78B631
triadic
#B6B231 #31B6B2 #B231B6
tetradic
#B6B231 #31B66F #3135B6 #B63178
square
#B6B231 #31B66F #3135B6 #B63178
split-complementary
#B6B231 #3178B6 #6F31B6
monochromatic
#565417 #868324 #B6B231 #D1CD53 #DEDB84

Accessibility & contrast

On white

2.23
#B6B231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.40
#B6B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B6B231
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B6B231#FFFFFF#000000##000000
##B6B2311.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB18
Deuteranopia (green-blind)
#C3B03B
Tritanopia (blue-blind)
#C3A699
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #b6b231;
/* rgb */ color: rgb(182, 178, 49);
/* oklch */ color: oklch(74.4% 0.144 107.6);
Tailwind
colors: {
  custom: {
    50: '#cfc873',
    500: '#b6b231',
    950: '#000000',
  },
}
SCSS
$custom: #b6b231;
$custom-light: #cfc873;
$custom-dark: #000000;
JSON
{
  "hex": "#b6b231",
  "rgb": {
    "r": 182,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 58.195,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74431,
    "c": 0.14406,
    "h": 107.6
  },
  "luminance": 0.42008
}

Semantic roles & 50–950 ramp

primary
#B6B231
secondary
#7C7EC7
accent
#4CE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B6B231

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

Preview Lab → · Contrast checker → · Palette generator →

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