#B2B127#B2B127

#B2B127 is a light, vivid yellow. Relative luminance 0.411; OKLCH L 73.8% C 0.149 H 109.1°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#B2B127
RGBrgb(178, 177, 39)
HSLhsl(60, 64%, 43%)
HSVhsv(60, 78%, 70%)
CMYKcmyk(0%, 0.6%, 78.1%, 30.2%)
CIE-LABlab(70.22, -15.12, 64.78)
CIE-LCHlch(70.22, 66.52, 103.14°)
OKLaboklab(73.81% -0.0489 0.141)
OKLCHoklch(73.81% 0.149 109.1)
XYZxyz(34.4498, 41.0568, 8.0291)
Luminance0.4106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2B127 #2728B2
analogous
#B26B27 #B2B127 #6EB227
triadic
#B2B127 #27B2B1 #B127B2
tetradic
#B2B127 #27B26B #2728B2 #B2276E
square
#B2B127 #27B26B #2728B2 #B2276E
split-complementary
#B2B127 #276EB2 #6B27B2
monochromatic
#4E4D11 #807F1C #B2B127 #D5D441 #E0E073

Accessibility & contrast

On white

2.28
#B2B127 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#B2B127 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2B127
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2B127#FFFFFF#000000##000000
##B2B1271.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#C2AE33
Tritanopia (blue-blind)
#BFA598
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b2b127;
/* rgb */ color: rgb(178, 177, 39);
/* oklch */ color: oklch(73.8% 0.149 109.1);
Tailwind
colors: {
  custom: {
    50: '#cdc86e',
    500: '#b2b127',
    950: '#000000',
  },
}
SCSS
$custom: #b2b127;
$custom-light: #cdc86e;
$custom-dark: #000000;
JSON
{
  "hex": "#b2b127",
  "rgb": {
    "r": 178,
    "g": 177,
    "b": 39
  },
  "hsl": {
    "h": 59.568,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.73806,
    "c": 0.14921,
    "h": 109.1
  },
  "luminance": 0.41056
}

Semantic roles & 50–950 ramp

primary
#B2B127
secondary
#6D6EC8
accent
#42E741
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B2B127

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

Preview Lab → · Contrast checker → · Palette generator →

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