#AFB726#AFB726

#AFB726 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 74.9% C 0.156 H 112.9°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#AFB726
RGBrgb(175, 183, 38)
HSLhsl(63, 66%, 43%)
HSVhsv(63, 79%, 72%)
CMYKcmyk(4.4%, 0%, 79.2%, 28.2%)
CIE-LABlab(71.64, -19.49, 66.25)
CIE-LCHlch(71.64, 69.05, 106.39°)
OKLaboklab(74.88% -0.0609 0.1441)
OKLCHoklch(74.88% 0.156 112.9)
XYZxyz(34.9637, 43.1217, 8.3149)
Luminance0.4312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB726 #2E26B7
analogous
#B77626 #AFB726 #67B726
triadic
#AFB726 #26AFB7 #B726AF
tetradic
#AFB726 #26B776 #2E26B7 #B72667
square
#AFB726 #26B776 #2E26B7 #B72667
split-complementary
#AFB726 #2667B7 #7626B7
monochromatic
#4E5211 #7F841B #AFB726 #D0D842 #DCE275

Accessibility & contrast

On white

2.18
#AFB726 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#AFB726 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB726
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB726#FFFFFF#000000##000000
##AFB7261.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C5B134
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb726;
/* rgb */ color: rgb(175, 183, 38);
/* oklch */ color: oklch(74.9% 0.156 112.9);
Tailwind
colors: {
  custom: {
    50: '#cbcc6e',
    500: '#afb726',
    950: '#000000',
  },
}
SCSS
$custom: #afb726;
$custom-light: #cbcc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb726",
  "rgb": {
    "r": 175,
    "g": 183,
    "b": 38
  },
  "hsl": {
    "h": 63.31,
    "s": 65.611,
    "l": 43.333
  },
  "oklch": {
    "l": 0.74882,
    "c": 0.15641,
    "h": 112.9
  },
  "luminance": 0.43121
}

Semantic roles & 50–950 ramp

primary
#AFB726
secondary
#746FCA
accent
#3FE949
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B

Preview Lab

Preview with #AFB726

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

Preview Lab → · Contrast checker → · Palette generator →

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