#B7B230#B7B230

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

Color values

HEX#B7B230
RGBrgb(183, 178, 48)
HSLhsl(58, 58%, 45%)
HSVhsv(58, 74%, 72%)
CMYKcmyk(0%, 2.7%, 73.8%, 28.2%)
CIE-LABlab(70.96, -13.10, 62.70)
CIE-LCHlch(70.96, 64.06, 101.80°)
OKLaboklab(74.51% -0.0427 0.138)
OKLCHoklch(74.51% 0.144 107.2)
XYZxyz(35.9838, 42.1227, 9.0308)
Luminance0.4212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7B230 #3035B7
analogous
#B76F30 #B7B230 #78B730
triadic
#B7B230 #30B7B2 #B230B7
tetradic
#B7B230 #30B76F #3035B7 #B73078
square
#B7B230 #30B76F #3035B7 #B73078
split-complementary
#B7B230 #3078B7 #6F30B7
monochromatic
#565417 #878323 #B7B230 #D2CD52 #DEDB83

Accessibility & contrast

On white

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

On black

9.42
#B7B230 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7B230
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7B230#FFFFFF#000000##000000
##B7B2301.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b7b230;
/* rgb */ color: rgb(183, 178, 48);
/* oklch */ color: oklch(74.5% 0.144 107.2);
Tailwind
colors: {
  custom: {
    50: '#d0c872',
    500: '#b7b230',
    950: '#000000',
  },
}
SCSS
$custom: #b7b230;
$custom-light: #d0c872;
$custom-dark: #000000;
JSON
{
  "hex": "#b7b230",
  "rgb": {
    "r": 183,
    "g": 178,
    "b": 48
  },
  "hsl": {
    "h": 57.778,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.74512,
    "c": 0.14448,
    "h": 107.2
  },
  "luminance": 0.42121
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B7B230

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

Preview Lab → · Contrast checker → · Palette generator →

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