#AFB251#AFB251

#AFB251 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.1% C 0.121 H 110.6°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#AFB251
RGBrgb(175, 178, 81)
HSLhsl(62, 39%, 51%)
HSVhsv(62, 54%, 70%)
CMYKcmyk(1.7%, 0%, 54.5%, 30.2%)
CIE-LABlab(70.56, -14.43, 48.40)
CIE-LCHlch(70.56, 50.51, 106.60°)
OKLaboklab(74.12% -0.0425 0.1129)
OKLCHoklch(74.12% 0.121 110.6)
XYZxyz(35.0856, 41.5496, 13.9546)
Luminance0.4155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB251 #5451B2
analogous
#B28451 #AFB251 #7EB251
triadic
#AFB251 #51AFB2 #B251AF
tetradic
#AFB251 #51B284 #5451B2 #B2517E
square
#AFB251 #51B284 #5451B2 #B2517E
split-complementary
#AFB251 #517EB2 #8451B2
monochromatic
#5D5F2A #87893D #AFB251 #C3C57B #D6D8A6

Accessibility & contrast

On white

2.26
#AFB251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#AFB251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB251
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB251#FFFFFF#000000##000000
##AFB2511.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAB47
Deuteranopia (green-blind)
#BFAE56
Tritanopia (blue-blind)
#BAA89D
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb251;
/* rgb */ color: rgb(175, 178, 81);
/* oklch */ color: oklch(74.1% 0.121 110.6);
Tailwind
colors: {
  custom: {
    50: '#c9c885',
    500: '#afb251',
    950: '#000000',
  },
}
SCSS
$custom: #afb251;
$custom-light: #c9c885;
$custom-dark: #000000;
JSON
{
  "hex": "#afb251",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 81
  },
  "hsl": {
    "h": 61.856,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.7412,
    "c": 0.12064,
    "h": 110.6
  },
  "luminance": 0.41549
}

Semantic roles & 50–950 ramp

primary
#AFB251
secondary
#9B9AC5
accent
#59CF5D
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130B
muted
#82827C

Preview Lab

Preview with #AFB251

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

Preview Lab → · Contrast checker → · Palette generator →

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