#B6B238#B6B238

#B6B238 is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.5% C 0.140 H 107.5°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#B6B238
RGBrgb(182, 178, 56)
HSLhsl(58, 53%, 47%)
HSVhsv(58, 69%, 71%)
CMYKcmyk(0%, 2.2%, 69.2%, 28.6%)
CIE-LABlab(70.92, -13.14, 59.72)
CIE-LCHlch(70.92, 61.15, 102.41°)
OKLaboklab(74.48% -0.042 0.1332)
OKLCHoklch(74.48% 0.14 107.5)
XYZxyz(35.9269, 42.0726, 9.9689)
Luminance0.4207 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B6B238 #383CB6
analogous
#B67338 #B6B238 #7BB638
triadic
#B6B238 #38B6B2 #B238B6
tetradic
#B6B238 #38B673 #383CB6 #B6387B
square
#B6B238 #38B673 #383CB6 #B6387B
split-complementary
#B6B238 #387BB6 #7338B6
monochromatic
#58561B #87842A #B6B238 #CDCA5E #DCD98D

Accessibility & contrast

On white

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

On black

9.41
#B6B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B6B238
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B6B238#FFFFFF#000000##000000
##B6B2381.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB25
Deuteranopia (green-blind)
#C3B040
Tritanopia (blue-blind)
#C3A69A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b6b238;
/* rgb */ color: rgb(182, 178, 56);
/* oklch */ color: oklch(74.5% 0.140 107.5);
Tailwind
colors: {
  custom: {
    50: '#cfc876',
    500: '#b6b238',
    950: '#000000',
  },
}
SCSS
$custom: #b6b238;
$custom-light: #cfc876;
$custom-dark: #000000;
JSON
{
  "hex": "#b6b238",
  "rgb": {
    "r": 182,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 58.095,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.7448,
    "c": 0.13965,
    "h": 107.5
  },
  "luminance": 0.42071
}

Semantic roles & 50–950 ramp

primary
#B6B238
secondary
#8486C6
accent
#50DC4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B6B238

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

Preview Lab → · Contrast checker → · Palette generator →

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